Loading...
Processing Forum
Recent Topics
All Forums
Move this topic
Forum :
Share your Work
Programming Questions
Core Library Questions
Contributed Library Questions
Android Processing
Processing with Other Languages
Integration and Hardware
Library and Tool Development
Events and Opportunities
General Discussion
Sub forum :
Move this topic
Cancel
General Discussion
Other
arthur168
Converting a String to an array of Chars
in
General Discussion
•
Other
•
3 months ago
Is there a 'method' of converting a String to an array of Chars other than calling String.charAt() in a loop?
1
Replies(3)
amnon.owed
Re: Converting a String to an array of Chars
3 months ago
Yes:
toCharArray()
Code Example
String s = "blabla";
char[] a = s.toCharArray();
println(a);
exit();
Leave a comment on amnon.owed's reply
arthur168
Re: Converting a String to an array of Chars
3 months ago
Brilliant-thank you.
I know about valueOf() and charAt(). Where can I find any other 'methods' documented?
kooogy
Re: Re: Converting a String to an array of Chars
3 months ago
official java documentation:
http://docs.oracle.com/javase/6/docs/api/java/lang/String.html
Leave a comment on arthur168's reply
Change topic type
Topic Type :
Discussions
Questions
No of days :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Change topic type
Cancel
Link this topic
Provide the permalink of a topic that is related to this topic
Permalink
Save
Close
Reply to arthur168's question
Top
Reply
{"z4102734":[25080000002272441],"z4102052":[25080000002275135],"z20874785":[25080000002271356,25080000002275133]}
Statistics
3
Replies
302
Views
0
Followers
Tags
No tags available for this topic.
Cancel
Actions
Permalink
Related Posts
[Solved] Temporary variables
is ArrayList faster than array ?
calling on classes to recognize an ...
Array intersect question
Question regarding image arrays.