StringTokenizer will help you to do any operation on string...