Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: John Cooper   on Nov 28 In Java Category.

  
Question Answered By: Ana Silva   on Nov 28

>What i want to ask are :
>-how to SET that value into the array(FROM CONSOLE)?
>
>
First, try to get an object of the value from the console. (you already
know how)
Then put the object into the array.

StudName[3] = stud1Object;

>-how to STORE that value in the array, so that, when I input  another value from
>console
> the previous  value won't be overrided?
>
>
Basically you put it in different spots in the array.

StudName[3] = stud2Object; // stud1 will be replaced.

Share: