Re: input problem

Posted by Kurt De Vos on
URL: http://imagej.273.s1.nabble.com/Apply-Substract-background-to-all-files-in-subfolders-tp3705174p3705183.html

Dear Charlotte,

It means what it says, the readln() method does not exist in InputStream.
you can use the IJ.getString(prompt, defaultString); method from ij to
get a String.

kurt

Holmes, Charlotte wrote:

>Hello
>
>
>Sorry This isn't really an image problem but I'm using imagej and I can't get this to work.
>I'm trying to get the user to input a name which the file the programe will go on to create will be named. I just want a box to pop up asking for the name to be typed in by the user and then that name kept and then used as the title.
>
>
>I am using: System.out.println("What is the name?");
>                    String userName = System.in.readln();
>
>however it keeps coming up with an error: Method readln() not found in class java.io.InputStream.
>
>Does this mean I need to add a package which will let me do this? Am I usingthe wrong command?
>
>Lottie
>
>
>========================================================================
>http://www.international-marine.com   International Marine Coatings.
>http://www.international-pc.com       International Protective Coatings.
>http://www.yachtpaint.com             International Yacht Coatings.
>========================================================================
>Confidentiality Note:
>
>This message, including attachments, is confidential and
>may be privileged. If you are not an intended recipient,
>please notify the sender then delete and destroy the original
>message and all copies. You should not copy, forward
>and/or disclose this message, in whole or in part, without
>permission of the sender. If you receive this e-mail message
>in error please notify us immediately by e-mail at [hidden email]
>  
>

--
*--*--*--*--*--*--*--*--*--*--*
University of Sheffield
Academic Neurology Unit
Division of Genomic Medicine
E Floor, Medical School
Beech Hill Road
Sheffield
S10 2RX
United Kingdom

Tel: ++44 (0) 114 271 2473
Fax: ++44 (0) 114 226 1201
Email: [hidden email]
*--*--*--*--*--*--*--*--*--*--*