/ Published in: Java
I hope its easy to understand. Any doubts just post a comment. Thanks.
Expand |
Embed | Plain Text
// THIS CREATES A NORMAL String // THIS MAKES THE CHAR ARRAY RECIEVE THE String PARSED AS A char ARRAY BY THE METHOD char[] charArray = regularString.toCharArray(); // THIS IS JUST THE TEST, EVERYTHING BELOW THIS LINE IS DISPOSABLE // AS IT WILL ONLY DEMONSTRATE HOW IT WORKS. BOTTOM LINE: // EVERY THING BELOW THIS LINE IS TRASH. for (char ch : charArray) { } // THE TEST RESULT WILL BE EACH CHARACTER OF THE STRING DISPLAYED // SEPARATELY AND SEPARATED BY THE SYMBOL "#" (NO COMMAS)
You need to login to post a comment.
