A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Whats Wrong I m nt Getting output
Joined: Apr 15, 2009
Oct 16, 2010 13:08:44
public class Literals
public static void main(
char a = 0x123;
System.out.println("a = " + a + " b = " + b + "c =" + c );
Joined: Feb 23, 2007
Oct 16, 2010 14:18:05
Answered in cross-post:
OP, please read up on cross-posting without notification, and why it's important:
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Whats Wrong I m nt Getting output
char c = 'b'-'a' --No Compile error??????????
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014