Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.math.*;
- import java.util.*;
- //import java.lang.*; by default
- public class Tere {
- int field;
- public static void main(String[] args) {
- Tere t;
- t=new Tere();
- t.field =77;
- System.out.println("field="+t.field)
- /*
- * for(int k=1;k<=10;k++) System.out.println("Tervist!"+k+". korda");
- */
- String v6ti = "user.name";
- String nimi = System.getProperty(v6ti);
- System.out.println("Tervist, " + nimi);
- System.out.println(System.getProperty("os.name"));
- System.out.println(Math.tan(120. / 180 * Math.PI));
- Calendar c = Calendar.getInstance();
- System.out.println(c.get(Calendar.DAY_OF_MONTH) + ":"
- + c.get(Calendar.DAY_OF_WEEK));
- for (int i = 0; i < 256; i++)
- System.out
- .println(i + "\t" + Integer.toOctalString(i) + "\t"
- + Integer.toBinaryString(i) + "\t"
- + Integer.toHexString(i));
- }
- }
Add Comment
Please, Sign In to add comment