first commit
This commit is contained in:
48
CS1322/t1/test1.java
Normal file
48
CS1322/t1/test1.java
Normal file
@@ -0,0 +1,48 @@
|
||||
public class test1{
|
||||
|
||||
|
||||
public static void main(String args[]){
|
||||
int quickFuse = 42;
|
||||
short temper = (short)quickFuse;
|
||||
|
||||
float pi = 3.14159256f;
|
||||
|
||||
short fall = (short)0000f;
|
||||
|
||||
long ssn = 590213386L;
|
||||
int y = (int) ssn;
|
||||
ssn = y;
|
||||
|
||||
short leave=2, shore = 10;
|
||||
float boat = leave - shore;
|
||||
|
||||
short scheme = 5;
|
||||
int x =
|
||||
((int)((long)((short)((char)((int)scheme)))));
|
||||
|
||||
double trouble = 0L;
|
||||
|
||||
int steak = 2, bill = 3;
|
||||
char broil = (char)steak;
|
||||
short change = (short)bill;
|
||||
|
||||
boolean b = (1.0f > 3L);
|
||||
System.out.println(b);
|
||||
|
||||
y = 4;
|
||||
b = ((long) y++ > 4f && --y < 10);
|
||||
System.out.println(b);
|
||||
|
||||
double vision = 2D;
|
||||
|
||||
long contradiction = 0xC0B0L;
|
||||
short andLong = (short)contradiction;
|
||||
|
||||
float ingPixie = 1e1f;
|
||||
System.out.println(ingPixie);
|
||||
|
||||
int x1=2, y1 =5;
|
||||
float z = x1/y1;
|
||||
System.out.println(z);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user