Click here to Skip to main content
16,007,687 members
Home / Discussions / Java
   

Java

 
AnswerRe: Two Class Files and can't find each other Pin
Kujtim Hyseni24-Jul-09 5:38
Kujtim Hyseni24-Jul-09 5:38 
QuestionArraylist Pin
kyosugi19-Jul-09 19:29
kyosugi19-Jul-09 19:29 
AnswerRe: Arraylist Pin
Rajdeep.NET20-Jul-09 7:02
Rajdeep.NET20-Jul-09 7:02 
GeneralRe: Arraylist Pin
fly90420-Jul-09 11:19
fly90420-Jul-09 11:19 
RantRe: Arraylist Pin
Nagy Vilmos21-Jul-09 5:33
professionalNagy Vilmos21-Jul-09 5:33 
GeneralRe: Arraylist [modified] Pin
EliottA22-Jul-09 6:05
EliottA22-Jul-09 6:05 
GeneralRe: Arraylist Pin
Nagy Vilmos22-Jul-09 6:09
professionalNagy Vilmos22-Jul-09 6:09 
AnswerRe: Arraylist Pin
fly90420-Jul-09 11:12
fly90420-Jul-09 11:12 
In all honesty, there is not a lot of information given here, as I don't exactly know what you are trying to do. Are you simply listing the data and adding/removing from it?


kyosugi wrote:
May I know if there is any specific problems in my coding which results the game list to also show the video list?


Can you clarify what you mean by this please. Do you mean on the UI (ie. mistakenly added to it) or actually in the List variable? In which case, debug your code and have a look at where the List is generated/output and see why it is being added.


ps.

kyosugi wrote:
try {
Item i = (Item)in.readObject();

// While there are game objects to read...
while (i != null)
{
    // Add object to game arraylist
    items.add(i);
    i = (Item)in.readObject();
}
} catch (EOFException e) {} // Do nothing if EOF reached


Simplified can be:

Item i;
while ((i = (Item)in.readObject()) != null) 
    items.add(i);


If at first you don't succeed, you're not Chuck Norris.

QuestionCan anybody tell me the difference between J2EE, J2SE, J2ME. Pin
GeetaW17-Jul-09 5:18
GeetaW17-Jul-09 5:18 
AnswerRe: Can anybody tell me the difference between J2EE, J2SE, J2ME. Pin
Nagy Vilmos17-Jul-09 5:42
professionalNagy Vilmos17-Jul-09 5:42 
GeneralRe: Can anybody tell me the difference between J2EE, J2SE, J2ME. Pin
mypicturefaded17-Jul-09 6:13
mypicturefaded17-Jul-09 6:13 
GeneralRe: Can anybody tell me the difference between J2EE, J2SE, J2ME. Pin
Nagy Vilmos20-Jul-09 1:39
professionalNagy Vilmos20-Jul-09 1:39 
GeneralRe: Can anybody tell me the difference between J2EE, J2SE, J2ME. Pin
Luc Pattyn19-Jul-09 8:56
sitebuilderLuc Pattyn19-Jul-09 8:56 
GeneralRe: Can anybody tell me the difference between J2EE, J2SE, J2ME. Pin
Nagy Vilmos20-Jul-09 1:40
professionalNagy Vilmos20-Jul-09 1:40 
AnswerRe: Can anybody tell me the difference between J2EE, J2SE, J2ME. Pin
Rajdeep.NET19-Jul-09 7:14
Rajdeep.NET19-Jul-09 7:14 
QuestionRegarding zip files in java [modified] Pin
chinnasri16-Jul-09 16:51
chinnasri16-Jul-09 16:51 
AnswerRe: Regarding zip files in java Pin
harold aptroot16-Jul-09 17:03
harold aptroot16-Jul-09 17:03 
GeneralRe: Regarding zip files in java Pin
chinnasri16-Jul-09 17:06
chinnasri16-Jul-09 17:06 
GeneralRe: Regarding zip files in java Pin
harold aptroot16-Jul-09 17:53
harold aptroot16-Jul-09 17:53 
AnswerRe: Regarding zip files in java Pin
David Skelly16-Jul-09 22:40
David Skelly16-Jul-09 22:40 
QuestionI get Logical error! Help me please [modified] Pin
Rajdeep.NET15-Jul-09 7:25
Rajdeep.NET15-Jul-09 7:25 
AnswerRe: I get Logical error! Help me please Pin
fly90415-Jul-09 11:02
fly90415-Jul-09 11:02 
GeneralRe: I get Logical error! Help me please Pin
Rajdeep.NET15-Jul-09 20:33
Rajdeep.NET15-Jul-09 20:33 
AnswerRe: I get Logical error! Help me please Pin
Nagy Vilmos15-Jul-09 22:10
professionalNagy Vilmos15-Jul-09 22:10 
GeneralRe: I get Logical error! Help me please Pin
fly90416-Jul-09 14:44
fly90416-Jul-09 14:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.