This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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

Whats Wrong I m nt Getting output

Divakant Dinesh

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

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
GeeCON Prague 2014
subject: Whats Wrong I m nt Getting output