File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
Whats Wrong I m nt Getting output
Divakant Dinesh
Greenhorn
Joined: Apr 15, 2009
Posts: 4
posted
Oct 16, 2010 13:08:44
0
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
posted
Oct 16, 2010 14:18:05
0
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
I agree. Here's the link:
http://aspose.com/file-tools
subject: Whats Wrong I m nt Getting output
Similar Threads
char c = 'b'-'a' --No Compile error??????????
Operators
comparing chars
char literal's
char doubt
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter