Results 1 to 5 of 5
Thread: countin unique chars !
- 04-26-2010, 01:46 AM #1
Member
- Join Date
- Apr 2010
- Posts
- 7
- Rep Power
- 0
countin unique chars !
Hi everyone !
Im new in this forum!
Im having a problem. I want to count the unique characters of a String(Ascii Image) without using Arrays .
I've already tried this, but no result :S .
PHP Code:public int getUniqueChars(){ String imgchar = Image; //Image is the original asciiImage for(int i=0;i<imgchar.length();i=i+0){ imgchar=imgchar.replaceAll(Character.toString(imgchar.charAt(i)),""); } imgChars = imgchar.length(); return imgChars; }
- 04-26-2010, 02:50 AM #2
Member
- Join Date
- Apr 2010
- Posts
- 7
- Rep Power
- 0
Help help help please !!!
-
You've bumped your thread after it's been here for only an hour. Please read this link to see why this may have the opposite effect you intended: PatienceIsAVirtue
- 04-26-2010, 03:49 AM #4
Senior Member
- Join Date
- Mar 2010
- Posts
- 952
- Rep Power
- 11
- 04-27-2010, 05:07 PM #5
Member
- Join Date
- Apr 2010
- Posts
- 7
- Rep Power
- 0
Similar Threads
-
find the unique values of a double array
By tyang in forum New To JavaReplies: 3Last Post: 09-11-2011, 03:47 PM -
How to assign unique id to each object created from same class
By srisar in forum New To JavaReplies: 2Last Post: 02-18-2010, 06:26 PM -
Generate unique letters
By bl00dr3d in forum New To JavaReplies: 22Last Post: 04-10-2009, 03:44 PM -
Unique Filter on search results
By selva in forum LuceneReplies: 0Last Post: 02-17-2009, 08:32 AM -
Unique element in an array
By revathi17 in forum New To JavaReplies: 2Last Post: 12-31-2007, 09:44 AM
Bookmarks