public class TipeData {
public static void main(String[] args) {
char xy;
xy = '7';
float f = 26.7f;
int x = 50;
double dob = -45.78;
boolean t = true;
int z = 5;
boolean y = (z > 15);
System.out.println( "Output Char = " + xy );
System.out.println( "Output Float = " + f );
System.out.println( "Output Int = " + x );
System.out.println( "Output Double = " + dob );
System.out.println( "Output Boolean = " + "(" + z + " > 15) = " + y);
}
}
public static void main(String[] args) {
char xy;
xy = '7';
float f = 26.7f;
int x = 50;
double dob = -45.78;
boolean t = true;
int z = 5;
boolean y = (z > 15);
System.out.println( "Output Char = " + xy );
System.out.println( "Output Float = " + f );
System.out.println( "Output Int = " + x );
System.out.println( "Output Double = " + dob );
System.out.println( "Output Boolean = " + "(" + z + " > 15) = " + y);
}
}
Download File klik disini....
0 komentar:
Posting Komentar