i have declare an array and if i want to give some details like name, value to the element, what should i put in ?
import java.awt.*;
public class createNode {
private int id;
private String name;
private String value;
ClientDetail[] clDetails= new ClientDetail[1]
c1Details.id = client1;
c1Details.name = client1;
}
i make it to a function so that i can call it when necessary. and inside although inside the array only got 1 element, but the element will have name,id,value.
how to do it ? sorry, i am noob in programming.