Java array help (newbie)
From: syncz (edwardchoi08_at_hotmail.com)
Date: 06/30/04
- Previous message: V S Rawat: "Re: Simple Display problem ...."
- Next in thread: Sebastian Scheid: "Re: Java array help (newbie)"
- Reply: Sebastian Scheid: "Re: Java array help (newbie)"
- Reply: Jean Charbonneau: "Re: Java array help (newbie)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Jun 2004 23:12:33 -0700
Hi all,
I need some help here regarding array. I'll like to add a variable to
an array until the user choose to stop adding, then it will print the
result out. how do i go along doing that? Some source code examples
will be helpful since i'm new to java. Thanks!
something like....
##################
for(;;)
double barbar[] = new double[8];
int arr = 0;
Enter num:
<store num in foo>
barbar[arr] = foo;
arr++
blah blah.
##################
- Previous message: V S Rawat: "Re: Simple Display problem ...."
- Next in thread: Sebastian Scheid: "Re: Java array help (newbie)"
- Reply: Sebastian Scheid: "Re: Java array help (newbie)"
- Reply: Jean Charbonneau: "Re: Java array help (newbie)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|