| | |
find the frequency of the character
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
4, 3, 3, 3 and 3
Last edited by masijade; Mar 25th, 2009 at 7:58 am.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
I sure he knows that, he just wants a code handout. Which he won't get.
If he posts his attempt at it, he might get help correcting it, but noone is going to do it for him.
If he posts his attempt at it, he might get help correcting it, but noone is going to do it for him.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Try this simple example:
Also you should always check the API to find more methods that could be useful. In this case, you should have looked the String API
Java Syntax (Toggle Plain Text)
String s = "asjdhk123uhmsmik,z!?"; for (int i=0;i<s.length();i++) { char ch = s.charAt(i); System.out.println(ch); }
Also you should always check the API to find more methods that could be useful. In this case, you should have looked the String API
Last edited by javaAddict; Mar 25th, 2009 at 12:18 pm.
Check out my New Bike at my Public Profile at the "About Me" tab
![]() |
Similar Threads
- Send data on a serial port (C++)
- memory management in wndows 2000 (Windows NT / 2000 / XP)
- check whether a palindrome can be formed from a given stirng (Java)
- Pls help :Find first non-repeated char in a string (C++)
- keeping a frequency of each character entered. (C)
- Cryptography Fun (Python)
Other Threads in the Java Forum
- Previous Thread: largest and 2nd largest numbers
- Next Thread: Introduction and question on position of reult in scanner
| Thread Tools | Search this Thread |
2dgraphics android api apple applet application arguments array arrays automation banking binary binarytree bluetooth capture chat chatprogramusingobjects class classes client code color component count database derby design eclipse eclipsedevelopment encryption error event exception fractal game givemetehcodez graphics gridlayout gui html ide if_statement image input integer interface j2me java javadesktopapplications javaprojects jlabel jni jpanel julia keyword linux list loop macintosh map method methods midlethttpconnection mobile netbeans newbie object os print printing problem producer program programming project projectideas read recursion reference replaysolutions ria scanner screen server set size sms sort sourcelabs sql stop string swing threads transforms tree ui unicode validation windows






