wood burning stoves
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 Introducing JavaFX 8 Programming this week in the JavaFX 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
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3748
    
  10

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


[OCA 8 Book] [Blog]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reading a char from int
 
jQuery in Action, 3rd edition