Cytat został ukryty, ponieważ ignorujesz tego użytkownika. Pokaż cytat.
irc: freenode.net in #torgdevs
private int x;
public void setX(val){ this.x = val; }
public int getX(){ return this.x; }
Ostatnio zmieniony przez 2cztery7 : 06-02-2015, 11:51
XYZbutton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
XYZbutton.setText("To jest zmieniona nazwa");
}
});
XYZbutton.addActionListener(e -> {
XYZbutton.setText("To jest zmieniona nazwa");
});
Ostatnio zmieniony przez Rollercoster : 06-02-2015, 12:08
Dreaming by drumming. ™
import java.util.Scanner;
public class SquareRoot
{
public static void main(String[]args)
{
Scanner keyboard = new Scanner(System.in);
System.out.println("\n" + "\t" + "SQUARE ROOT!");
System.out.println("Enter a number: ");
double number = keyboard.nextDouble();
double root;
while(number <= 0) {
System.out.println("You can't take the square root of a negative number.");
System.out.println("Try again: ");
number = keyboard.nextDouble();
}
root = Math.sqrt(number);
System.out.println("The square root of " + number + " is " + root + ".");
}
}
Dreaming by drumming. ™
Cytat został ukryty, ponieważ ignorujesz tego użytkownika. Pokaż cytat.
Cytat został ukryty, ponieważ ignorujesz tego użytkownika. Pokaż cytat.
Aktualnie 1 użytkowników przegląda ten temat. (0 użytkowników i 1 gości)
Zakładki