Results 1 to 3 of 3
- 09-29-2011, 10:31 PM #1
Member
- Join Date
- Sep 2011
- Posts
- 3
- Rep Power
- 0
Need help filtering out words from a String with a certain ammount of characters.
I have this String:
String ordTabell[]={"a","b","aa","bb","cc","aaa","bbb","ccc","ddd"," aaaa","bbbb","cccc","dddd","eeee"};
Basicly just some different words.
I need to filtrate out the words that have x ammount of characters in it.
IE: x=3 and i need to System.out.print the words that have 3 characters in them.
What can i do in order to make this work? new to java.
Thanks
-
Re: Need help filtering out words from a String with a certain ammount of characters.
Point of correction: You don't have a String but rather an array of String, and this distinction is important.
Now what exactly do you mean by "filtrate out the words"? Remove them from the array? put them in another array? only display the words on the screen that are OK? What?
And what have you tried so far? It's always best to try before asking, and to show what you've tried.
- 09-29-2011, 11:48 PM #3
Member
- Join Date
- Sep 2011
- Posts
- 3
- Rep Power
- 0
Similar Threads
-
Reverse words of string.
By Vikash Kumar Singh in forum Advanced JavaReplies: 6Last Post: 08-07-2011, 12:28 PM -
count no of words in string
By fakepics500 in forum New To JavaReplies: 12Last Post: 07-19-2011, 10:49 AM -
Removing words from a String
By nn12 in forum New To JavaReplies: 3Last Post: 03-15-2011, 10:50 AM -
Creating unspecified ammount of objects
By plm-pusik in forum New To JavaReplies: 3Last Post: 09-01-2010, 06:46 PM -
Analyze a string of words
By zoe in forum Advanced JavaReplies: 2Last Post: 07-26-2007, 10:01 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks