Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Problem with Jcreator

  • 19-10-2013 04:45PM
    #1
    Closed Accounts Posts: 4,339 ✭✭✭


    I wrote a simple bit of code in Jcreator to take in 2 numbers, do a bit of processing and then output 2 numbers. And it worked fine.

    I then opened it in Jcreater pro and when I run it and input the second number it says "make sure you input an integer" even though i am trying to give it an integer. I found that if I enter 22 it takes in the value 2, 54 gives it the value 5 etc.

    Anyone have any idea what the problem is ? Code is just using easy in to assign an int to a variable and it works fine in the free vs of jcrator, just not pro.


Comments

  • Registered Users, Registered Users 2 Posts: 1,731 ✭✭✭GreenWolfe


    Can you post the code? Just to get it out of the way, are you using the same piece of code in both programs?


  • Closed Accounts Posts: 4,339 ✭✭✭Artful_Badger


    Same file opened in each program so cant be a code issue. I recompiled the file and easyin class to make sure it wasnt a jdk issue too. The problem starts when i try to input the y coordinates and everything thereafter.


  • Closed Accounts Posts: 4,339 ✭✭✭Artful_Badger


    Looking at it now i realise I'm getting the error twice, so it must be running the instruction twice which is why I need to input two integers when it should be one.


  • Closed Accounts Posts: 4,339 ✭✭✭Artful_Badger


    It seems to be an issue with capturing the output. When I stop it capturing the output and let it run in a terminal window it works fine.


  • Closed Accounts Posts: 4,339 ✭✭✭Artful_Badger


    I have tried other bits of code and ran into the same issue. I think its to do with EasyIn as there is no problem when I use scanner for input instead of EasyIn.


  • Advertisement
Advertisement