package hello;

class Foo{
	static int x;
	public void go(){
		System.out.println(x);
	}
}

class Foo2{
	int x;
	public static void go(int x){
		System.out.println(x);
		
	}
}

class Foo4{
	static final int x = 12;
	public void go(){
		System.out.println(x);
	}
}


class Foo5{
	static final int x = 12;
	public void go(final int x){
		System.out.println(x);
	}
}

class Foo6{
	int x = 12;
	public static void go(final int x){
		System.out.println(x);
	}
}


class Foo3{
	final int x = 0;
	public void go(){
		System.out.println(x);
	}
}


public class FinalDemo {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}

@@ -9,16 +9,67 @@
 hello;%0A%0A
+import java.util.Calendar;%0Aimport java.util.Date;%0A%0A
 class Fo
@@ -690,14 +690,1268 @@
 d stub%0A%0A
+%09%09int a = 1;%0A%09%09double b = 2222.2233;%0A%09%09String x = String.format(%22the int is %25d, the double is %25.3f%22, a, b);%0A%09%09System.out.println(x);%0A%09%09System.out.println(String.format(%22now is %25tc%22, new Date())); //complete date and time %3E%3Enow is %DA%B6  23 09:04:06 CST 2016%0A%09%09System.out.println(String.format(%22%25tr%22, new Date())); //%3E%3E 09:04:06 %0A%09%09Date date = new Date(); //a time-stamp, for everything else  , use Calendar%0A%09%09System.out.println(String.format(%22%25tA, %25tB, %25td%22, date, date, date)); //%3E%3E%DA%B6, , 23%0A%09%09System.out.println(String.format(%22use one arg only: %25tA, %25%3CtB, %25%3CtD%22, date)); //%3E%3E%DA%B6, , 08/23/16%0A%09%09%0A%09%09Calendar cal = Calendar.getInstance();%0A%09%09%0A%09%09cal.set(2006, 0,7,15,40); //set time to Jan 7 2004 at 15:40%0A%09%09System.out.println(%22the frake time is %3E%3E %22+cal.getTime()); //the frake time is %3E%3E Sat Jan 07 15:40:48 CST 2006%0A%09%09System.out.println(%22old hour %22  + cal.get(cal.HOUR_OF_DAY));%0A%09%09long day1 = cal.getTimeInMillis();%0A%09%09System.out.println(%22time in millis %22 + day1); //%3E%3Etime in millis 1136619648978%0A%09%09day1 += 1000*60*60;%0A%09%09cal.setTimeInMillis(day1);%0A%09%09System.out.println(%22new hour %22  + cal.get(cal.HOUR_OF_DAY)); //.%3E%3Enew hour 16%0A%09%09%0A%09%09cal.add(cal.DATE, 12);%0A%09%09System.out.println(%22add  12 day%3E%3E %22 + cal.getTime()); //add  12 day%3E%3E Thu Jan 19 16:40:48 CST 2006%0A%09%09%0A%09%09%0A
 %09%7D%0A%0A%7D%0A

add string format and date, calendar