J
justin
Hie i am a newb and i was wondering if i created a class of the name
Swimmer
with the following codes (just abit not all..cos dun wanna flood the
place)
mport java.util.GregorianCalendar;
import javax.swing.*;
import java.util.Calendar;
public class Swimmer {
private String firstName,surname,gender,bestStroke,bestTime;
private double weight,height;
private GregorianCalendar dateOfBirth;
private int calcAge;
public Swimmer(String n,String s,String g,double w,double h,String
bs,String bt,int bYear,int bMonth,int bDay){
firstName=n;
surname=s;
gender=g;
weight=w;
height=h;
bestStroke=bs;
bestTime=bt;
dateOfBirth = new GregorianCalendar(bYear, bMonth, bDay);}
and i am making another class...which is the GUI interface...what do i
do to set up and array of the class Swimmer? and i must be able to
browse the array thru the GUI with some buttons..thanks guys
Swimmer
with the following codes (just abit not all..cos dun wanna flood the
place)
mport java.util.GregorianCalendar;
import javax.swing.*;
import java.util.Calendar;
public class Swimmer {
private String firstName,surname,gender,bestStroke,bestTime;
private double weight,height;
private GregorianCalendar dateOfBirth;
private int calcAge;
public Swimmer(String n,String s,String g,double w,double h,String
bs,String bt,int bYear,int bMonth,int bDay){
firstName=n;
surname=s;
gender=g;
weight=w;
height=h;
bestStroke=bs;
bestTime=bt;
dateOfBirth = new GregorianCalendar(bYear, bMonth, bDay);}
and i am making another class...which is the GUI interface...what do i
do to set up and array of the class Swimmer? and i must be able to
browse the array thru the GUI with some buttons..thanks guys