The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2002



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


newbie Question about Java

Posted by Saguaro on February 19, 2002 at 11:06 PM

I've started java like two weeks ago and there is a part of a program that I am stuck on, I'm supposed to make part of the program do this:
Enter the lines of text. Enter an empty line to end.
i am here

number of lines:2

so far all I have is:
System.out.println("Enter the lines of text. Enter an empty line to end.");

Can you guys help me on what to do next? I don't know how to make the program accept multiple lines and count the number of lines made. Thanks a lot.


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us