File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 3697
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reading a char from int
 
Similar Threads
Array Reference Assignments
Comparable again
parameters/arguments
how to set pos of a frame
is this two are euqal