Professional Documents
Culture Documents
Lec 05 Classwork
Lec 05 Classwork
import java.io.FileWriter;
import java.util.ArrayList;
listC.add(s1);
listC.add(s2);
listC.add(s3);
listC.add(s4);
System.out.println("Success Now");
}
}
package week5;
public Country (String name, int pop, int area, double FR)
{this.name=name;
this.population=pop;
this.area=area;
this.fertilityRate=FR;
}// Constructor
}//toString
}//class