Michaela Harrison

Greenhorn
+ Follow
since Nov 05, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Michaela Harrison

I am also using bash shell...
12 years ago
I attached a screenshot to show you exactly what i mean... I can type anything in the line after "...2+2 " and it will accept it. And even if I initialize Scanner in a different place, it still seems to give me an input line right where I do so..

I did try the println and what Campbell Ritchie suggested in the other post but neither of these worked.. I will find out more about the flush() that rc mentioned when I get the chance..

Thanks Campbell Ritchie for putting in the code tags. Really cool of you..

admin
Username: secret
Password: 4
What is 2 + 2:

12 years ago
Hi Rc

I really don't know whats up with my system, im using linux.. I don't know if that helps.

I checked it on another unix based system and it works fine... without changing anything.. Thanks for the help. I'll try changing to println again and let you know as soon as I can.

12 years ago
Hi guys.. I have no idea whats going on with my system. I've never worked on it properly before but I keep having problems with getting a user input...

I took this code off another website and tried to solve the problem but nothing... Ok so whats happening is this:

I compile and run fine but instead of getting "Username: " first, I get the first input line which is where I have to type username... So basically everything is one line up... I have to type the password when the program outputs "Username: " and so on..

When i get to the 2 + 2 bit, I just press enter...

Can someone please help?

I haven't checked this on windows yet.

12 years ago