Hello
i was trying to figure out how to do the new line character in java according to this article
http://www.developer.com/design/arti...0925_3611496_2
i tried the code, but i am getting the following output.Code:public class Primitives { public static void main(String[] args) { char c2 = 'n'; // ASCII escape sequence for newline System.out.println("c2 = " + (char)c2); } }
c2= n
i tried to change char c2 = '/n'
and i get the error unclosed character literal
does this article follow an old java standard which is not copatile with java 1.4?
p.s.
the artcle says
short num = 227; // is The code for PI
how ever i get some other character on the screen




Reply With Quote