Java Loops II

  • + 1 comment

    Did you see your error report when you run code?

    Exception in thread "main" java.lang.NumberFormatException: For input string: "0 2 10"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Integer.parseInt(Integer.java:492)
        at java.lang.Integer.parseInt(Integer.java:527)
        at HelloWorld.main(HelloWorld.java:17)
    
    • + 0 comments

      nope. question requires space while taking input.See above solved problem .