*** empty log message ***
authordavid <david>
Thu, 6 Jan 2011 23:21:20 +0000 (23:21 +0000)
committerdavid <david>
Thu, 6 Jan 2011 23:21:20 +0000 (23:21 +0000)
Robust/src/Tests/InitializerTest.java [new file with mode: 0644]

diff --git a/Robust/src/Tests/InitializerTest.java b/Robust/src/Tests/InitializerTest.java
new file mode 100644 (file)
index 0000000..ba90f38
--- /dev/null
@@ -0,0 +1,40 @@
+public class Test{
+    static public void main(String[] args){
+       int mainInt = 10;
+       Foo f1=new Foo();
+       Foo f2=new Foo(3);
+       f1.print();
+       f2.print();
+    }
+}
+
+class Foo{
+    private int a=1;
+    private double b=5;
+    private byte c=(byte)10;
+    private short d=(short)7;
+    private long e=15;
+    private float f=6;
+    private boolean g=true;
+    private char h='h';
+    
+     public Foo(int alpha){
+        a=alpha;
+     }
+    
+    public Foo(){
+       
+    }
+    
+    public void print() {
+       System.out.println("a="+a);
+       System.out.println("b="+b);
+       System.out.println("c="+c);
+       System.out.println("d="+d);
+       System.out.println("e="+e);
+       System.out.println("f="+f);
+       System.out.println("g="+g);
+       System.out.println("h="+h);
+    }
+
+}