Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3855

Scanner input not working in jshell

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 11.2, 12.2, 12.5
    • None
    • java - JShell
    • None
    • windows 10 64bit

    • Patch

    Description

      I tried this in netbeans 11.2 (tools-->open java platform shell)
         [1]-> Scanner a=new Scanner(System.in);
       [2]-> System.out.print("give number=");
       [3]-> a.nextLine();

      i can see the output window but i can not enter values.

      Attachments

        1. bug1.jpg
          51 kB
          ΣΤΡΑΤΑΚΗΣ ΞΕΝΟΦΩΝ

        Activity

          People

            Unassigned Unassigned
            virxen75 ΣΤΡΑΤΑΚΗΣ ΞΕΝΟΦΩΝ
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: