This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Reading a char from int Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Reading a char from int" Watch "Reading a char from int" New topic
Author

Reading a char from int

Stephen Foy
Ranch Hand

Joined: Oct 17, 2005
Posts: 143
I have a loop in my program that runs only when the value is != q

The probelm is the data type is int. How can i work with this?


Stephen Foy - Microsoft Application Development Consultant
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3703
    
    5

Char and int are considered the same format based on length, so you can convert fairly easily such as:


My Blog: Down Home Country Coding with Scott Selikoff
 
wood burning stoves
 
subject: Reading a char from int
 
Similar Threads
is this two are euqal
Array Reference Assignments
how to set pos of a frame
Comparable again
parameters/arguments