some Java confusion, help [walter savitch] [numeric types]

admin / December 12th, 2010/ Posted in Software / No Comments »

Q: Im trying to learn Java on my own .

Im Walter Savitchs text.

He says the following: 977 503 977 503 u0026quot; you a value of type char to a variable of type int, or any of the int follow our list of type. u0026quot;

I not get this. Is he saying that a letter to assign type int? If so, that makes no sense.


O-Level and A-Level Solved Physics Numericals
Re:While we're in the subject, anyone knows the difference between char and byte?

How To Fight Type 2 Diabetes & Win!
Re:Yeah, he probably should have been more clear, but I really like Savitch. I think his books are some of the best.

Are you reading the "Java: An Introduction to Computer Science & Programming" book of his?


Diabetics, mainly Type I
Re:thanks for the explanation guys…

Savitch did cover it a bit later… I wish he'd covered it sooner.

but he used the example of printing the conversion of 7 from a char to an int, the result would give you 55 and not 7, because of the unicode.

honestly, your explanations were better.

thanks again.


Secretarial & Typing Work From Home.
Re:Yes, so the int takes up the numeric representation of the letter. But I believe it's the Unicode representation, not the ASCII.

All Types Of Wedding Speeches.
Re:a letter is a character.

a character is represented by an ascii number. that is that.

so int i = 'a' is a legal argument


Related posts


Tags: ,

Leave a Reply

Name required

Mail (will not be published) required

Website