All pastes #968085 Raw Edit

Something

public java v1 · immutable
·published 2008-04-02 20:27 UTC
rendered paste body
package askisi_2;import java.io.*;import java.util.Vector;/** * * @author godfath3r */public class Main {    /**     * @param args the command line arguments     */    public static void main(String[] args) {        Vector<Employee> myVector = new Vector();                for (int k=0;k<10;k++)        {                   for (int i=0;i<2;i++)                    {            switch (i){                    case 0:{            String name = new String("");                        try                             {                                    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));                                    name = br.readLine();                    br.close();                                 }                 catch (Exception e)                  {                                   // do the catch thing here...                                     }                    }                                        case 1:                    {                       String surname;                        try                             {                                    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));                                    surname = br.readLine();                                    br.close();                 }                 catch (Exception e)                  {                                   // do the catch thing here...                 }                                                                    }Employee tmp = new Employee(name,surname,93874,3.5);                    myVector.add(tmp);            }            }                    }    }}