Two Laptop Bag*
The moose likes Beginning Java and the fly likes Whats Wrong I m nt Getting output Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Whats Wrong I m nt Getting output

Divakant Dinesh
Greenhorn

Joined: Apr 15, 2009
Posts: 4
public class Literals
{
public static void main(String[] as)
{
char a = 0x123;
char b=123;
char c=(char)70000;
System.out.println("a = " + a + " b = " + b + "c =" + c );
}
}
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
Answered in cross-post: whats-wrong-i-m-nt-getting-output-please-please-help

OP, please read up on cross-posting without notification, and why it's important: BeForthrightWhenCrossPostingToOtherSites
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Whats Wrong I m nt Getting output