Results 1 to 3 of 3
  1. #1
    Nikhil1800 is offline Member
    Join Date
    Jun 2013
    Posts
    1
    Rep Power
    0

    Question please help me on this code

    import java.io.*;
    class InputDemo
    {
    public static void main(String args[]) throws Exception
    {
    String str;
    DataInputStream in = new DataInputStream(System.in);
    System.out.println("Enter the string : ");
    str = in.readline();
    System.out.println("String is : "+str);
    }
    }



    ERROR....
    D:\Java>javac InputDemo.java
    InputDemo.java:12: error: cannot find symbol
    str = in.readline();
    ^
    symbol: method readline()
    location: variable in of type DataInputStream
    1 error

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    7

    Default Re: please help me on this code

    readLine
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

Similar Threads

  1. Replies: 16
    Last Post: 01-31-2012, 08:36 PM
  2. Replies: 3
    Last Post: 08-10-2011, 09:17 AM
  3. Replies: 0
    Last Post: 08-07-2011, 08:32 PM
  4. Replies: 0
    Last Post: 02-21-2011, 11:50 AM
  5. Replies: 1
    Last Post: 04-26-2007, 03:52 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •