Results 1 to 2 of 2
  1. #1
    valery is offline Member
    Join Date
    Jul 2007
    Posts
    32
    Rep Power
    0

    Default how to use jdb.exe

    when I use the jdb.exe to debug the following I/O program,
    I don't know how to input data.
    this is my code
    Java Code:
    import java.io.IOException;
    class Lowercase
    {
    public static void main(String[] args) throws IOException
    {
    int i;
    while ((i=System.in.read())!=-1)
    {
    /*line 9*/ i=Character.toLowerCase((char)i);
    System.out.write(i);
    }
    }
    }
    I don't know how to do next, because there is no input prompt.
    Anyone can guide me?

  2. #2
    leonard is offline Member
    Join Date
    Jul 2007
    Posts
    43
    Rep Power
    0

    Default

    System.in and System.out are used by jdb. You have to use an alternate input source e.g. file or network.

Posting Permissions

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