Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can't Find Symbol Method CharAt(Int),Can't Find Symbol Method IsDigit(Char)

807601Jan 24 2008 — edited Jan 24 2008
Hi. I am getting an error "cannot find symbol method CharAt(Int)" and "cannot find symbol method IsDigit(Char)". What am I doing wrong?


boolean itdigit; int i; char current; int strlen;

strlen = args[0].length();
			
			while (i < strlen) {
				current = args[0].CharAt(i);
				itdigit = Character.IsDigit(current);
			}
			if (itdigit == false) {
				System.out.println("Only numbers please.");
			}
			else {
Much love,
SD.

Edited by: SilentDragoon on Jan 24, 2008 11:54 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 21 2008
Added on Jan 24 2008
3 comments
3,662 views