package importing;

 

public class ImportExample {

      java.util.List list = null;

}

 

 

 

package importing;

 

import java.util.List;

 

public class ImportExample {

      List list = null;

}

 

 

 

package importing;

 

import java.util.*;

 

public class ImportExample {

      List list = null;

}

 

 

 

 

package importing;

 

import java.util.*;

import java.awt.List;

 

public class ImportExample {

      List list = null;

}

 

 

 

 

package importing;

 

import java.util.*;

import java.awt.List;

 

public class ImportExample {

      List list1 = null;

      java.util.List list2 = null;

}

 

 

 

 

public class Printing {

    public static void main(String[] args) {

        int i = 10;

        double d = 20.2;

        System.out.println("The value of i is "+

            i+" and the value of d is "+d);

    }

}

 

 

 

 

public class Printing {

    public static void main(String[] args) {

        int i = 10;

        double d = 20.2;

        System.out.printf("The value of i is %d and the value of d is %f\n", i, d);

    }

}

 

 

 

package adder;

 

public class Adder {

      public static void main(String[] args) {

            int i1 = Integer.valueOf(args[0]);

            int i2 = Integer.valueOf(args[1]);

            int result = i1+i2;

            System.out.printf("The result is %d", result);

      }

}