Skip to Main Content

Java Programming

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!

Difference between char and int

807580Oct 23 2009 — edited Oct 27 2009
I started to write a program that would solve all types of equations, anything from having to graph a line to find a point of intersection using two equations. I've run into a simpler problem though.. If I have say, "32x", how would I know whats a number, and whats a letter, since
		int i = 65;
		char i2 = 'A';
		System.out.println(i == i2);
prints true, without creating a String or Character?

Edited by: Jadz_Core on Oct 23, 2009 12:20 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 24 2009
Added on Oct 23 2009
36 comments
838 views