Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Passing '\n' (new-line) on command line in Java

Can we Pass a new-line ('\n') character or any other escape sequence via Command line in Java?One of our visitors (Vivek Athalye) asked this in response to the article - Tricky use of static initializer block. Thought of posting the answer as a separate article to increase the chances of it reaching to a wider range of audience.The answer to the query is NO. The question arises, if you pass the



This post first appeared on Geek Explains: Java, J2EE, Oracle, Puzzles, And Problem Solving!, please read the originial post: here

Share the post

Passing '\n' (new-line) on command line in Java

×

Subscribe to Geek Explains: Java, J2ee, Oracle, Puzzles, And Problem Solving!

Get updates delivered right to your inbox!

Thank you for your subscription

×