Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Java only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Java
how to input a string in an array
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
blass
New Member
Join Date:
May 2007
Posts:
1
#1
how to input a string in an array
May 21 '07, 05:28 PM
help please
now
yes now
r035198x
MVP
Join Date:
Sep 2006
Posts:
13225
#2
May 21 '07, 05:32 PM
Originally posted by
blass
help please
now
yes now
How do you think it should be done ?
Have you read any tutorials?
Comment
Post
Cancel
JosAH
Recognized Expert
MVP
Join Date:
Mar 2007
Posts:
11453
#3
May 21 '07, 06:28 PM
Originally posted by
blass
help please
now
yes now
That sounds rather demanding doesn't it? You should start with supplying a bit
more information, because your terse message just tells me this:[code=java]
String aString= "aString";
String[] anArray;[/code]
Now what?
kind regards,
Jos
Comment
Post
Cancel
rsrinivasan
New Member
Join Date:
Mar 2007
Posts:
221
#4
May 22 '07, 05:02 AM
Originally posted by
blass
help please
now
yes now
hi,
Normal String input:
String str = "Hi";
Array String Input:
String str[] = new String[10]; // Array Declaration
str[0] = "string0";
str[1] = "string1";
.
.
.
.
str[9] = "string9";
Thanks,
Comment
Post
Cancel
emekadavid
New Member
Join Date:
Mar 2007
Posts:
46
#5
May 22 '07, 04:51 PM
that's how it should be done. now for a cup of unearned coffee.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment