Re: Arraylist
- From: "chris1980" <sulemanzia@xxxxxxxxx>
- Date: 29 Jan 2007 07:52:52 -0800
John. thanks for a great explanation. I am glad someone was able to
take his time out and explain me a little much better. so what you
trying to say is :
class Car
{
private String make;
private String model;
private String year;
public Car (String mk, String md, String yr) {
this.make = mk;
this.model = md;
this.year = yr;
}
public String getMake() {
return make;
}
public String getModel() {
return mode;
}
public String getYear() {
return year;
}
I think i am getting the idea of a good encapsulated program. i will
post back if i get stuck. i have good knowledge of java not very good
but good but very new to Arraylist. i thought of using arrays but when
i read the Api arraylist sounds good to me. Thanks alot Kennedy :).
.
- References:
- Arraylist
- From: chris1980
- Re: Arraylist
- From: John W. Kennedy
- Re: Arraylist
- From: chris1980
- Re: Arraylist
- From: John W. Kennedy
- Arraylist
- Prev by Date: Re: New line in a JTextArea (student learning here)
- Next by Date: Is there an easy way to find the right class?
- Previous by thread: Re: Arraylist
- Next by thread: Re: Arraylist
- Index(es):
Relevant Pages
|
|