We are here to help, not to do your homework. If we give you the answer, you'll never learn. Tell us what you tried, what you don't understand or where you are stuck, and we'll be very glad to help you.
Last edited by AlbertGM; July 19th, 2012 at 03:21 AM.
Please, correct me. I'm just learning.... and sorry for my english :-)
I guess you want to filter numeric string with alphabetic String. on homework front , mods are correct but I am giving you some hint which is applicable in general.
1) There are methods in Java API which converts String to number like Integer.parseInt(String) which can throw NumberFormatException is String can not be converted into number. there are couple of more ways to do this you can also see this link http://javarevisited.blogspot.sg/201...to-string.html.
2) For getting input from user you can use java.util.Scanner class.
try working with these information and post here if you face any issue, that would improve your learning without being stuck.