這是今天晚上我編寫的程序:
public class HelloWorldApp {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hello World!");
float Float = 2.786412F; // ends in F
System.out.println(Float);
double Double = 3.786654998741563;
System.out.println(Double);
final byte MALE = 1;
final byte FEMALE = 2;
Double += MALE * FEMALE;
System.out.println(Double);
Double = 1.3/7;
System.out.println(Double);
final byte ROJO = 3;
final byte VERDE = 4;
System.out.println(ROJO * VERDE);
byte hasta = 0x38;
hasta <<= 2;
hasta &= 0x74;
System.out.println((char)hasta + "\u0028\"");
boolean bool = true;
if (bool) {
byte f = 15;
byte g = f++;
System.out.println(g);
byte h = ++f;
System.out.println(h);
int a[] = {12, 15, 32, 14, 56, 27};
a[2]++;
String fes = "¿Cómo estás?";
System.out.println(fes);
}
}
}