May I know how to split a word into individual characters (letters)?
For example, AUGC into
A
U
G
C
Sunshineserene
0
Junior Poster
Recommended Answers
Jump to PostWhat do you think the "toCharArray" method of String is for?
See the API docs for String.
Jump to Postmbugua, do you consider the OP too stupid to understand the first reply so that you found it necessary to do his homework for him?
Jump to PostMasijade indeed if this is his homework, Sunshineserene should be advised to avoid copying it because I must have been out of my mind to post the code:
Sunshineserene I understand your concern just study the charAt() method.
Oh C'mon how can you think it is not homework? What real-world …
Jump to PostIt's close to what you're looking for. Write a program using charAt(). The sample one provided (or a google search, or browsing through the java library) will give you a good idea of how to use it. Then it's just implementing the method in your program. Good luck!
Jump to PostEdit: Nevermind.
All 31 Replies
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
mnmw
-8
Light Poster
masijade
commented:
The "code of conduct" on this site dictates that we not post full code solutions.
-2
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
mnmw
-8
Light Poster
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
Sunshineserene
0
Junior Poster
mnmw
-8
Light Poster
arete
0
Newbie Poster
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
mnmw
-8
Light Poster
Sunshineserene
0
Junior Poster
mnmw
-8
Light Poster
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
mnmw
-8
Light Poster
Megha SR
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
mnmw
-8
Light Poster
masijade
commented:
No content and no meaning and no help. Go somewhere else to complain. Show effort and won't "get torn about", but you're probably not interested in that.
-2
jon.kiparsky
commented:
Nonsense on stilts.
+0
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
mnmw
-8
Light Poster
masijade
commented:
More whining.
-2
jon.kiparsky
commented:
Holy missing the point of the whole exercise, Batman!
+0
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
mnmw
commented:
Mean and Arrogant
+0
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
mnmw
-8
Light Poster
mnmw
-8
Light Poster
mnmw
-8
Light Poster
Ezzaral
commented:
This is absolutely ignorant. You obviously didn't look very closely at his posting history.
-2
jon.kiparsky
326
Posting Virtuoso
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.