Can someone help me with my code, I'm trying to create a simple calculator that asks for user input, a value too low will return "no that number is too small try again" a value too large will return "no that number is too large, try again" and the correct answer will output "correct" while ending the program.
It's straightforward but I'm trying to get the hang of looping. It all works fine, but I want it to continuously accept inputs until the correct answer is reached.
PC: Answer '2 + 2' as an integer
Comment too long. Click here to view the full text.
First off why the fuck are you using a string to input into System.out.println and not directly in it?
Secondly, you want to make a procedure so first have a main method with the void in it like
public static void main(String args)
for (int i = 1; i < 5; i++)
//calculator shit goes here
Now this is probably incorrect because I need to test it but the general idea is there
>How to request purchase advice:
>/g/ wiki headphone FAQ:
still trying to figure out which one i like more...............
the dt770 sounds super off when i start using it after long periods of time with the hd558s. i'm using a xonar DG to power them but that might be incorrect.
kinda wish i had an 80ohm pair :(
Poorfag here, but I need new hedphone
Are the Encore Rockmaster really the best value for this quality/price, or are these just hyped after the success of their crowfunding?
If they are bad, can you head me to another on ear closed and portable headphone at this price range?
I live in France and listen mostly to post punk
Hey /g/ I have a problem
Do any of you know of a website that will save javacode and run it when opened? I can share links in this forum so that was my first plan.
Any other options are appreciated.
If you don't even understand that, you're out of your league.
There are a number of websites that can display and execute JS code which are helpful for online, forum based debugging, but I'm not going to tell you them since you lured me here under false pretences claiming this was a JAva related question.
Google that shit.
Hey bro can I use your computer?
what laptop are you using /g/?
who still uses a note 2 or S3 galaxy with CM ?
I currently live in China and can't for the life of me access Tor. China Unicom blocks obfsproxy relays extremely well. I'm using an http proxy but it isn't doing any good. Can anyone help me with this? Will posts updates on advice to show if it works, thanks!
What Linux OS should I use? I don't want to touch the command line and want a taskbar instead of a sidepanel.
Is Vuze the best torrent client?
Who has better framerates for this new tech?
Any recommended cards
You have 7 words or fewer to make Richard Stallman as angry as possible. What do you say?
Acronyms may count as 1 word.
ITT: we design a hypothetical image board.
has anyone bought shit from aliexpress?I tried to buy a tablet and know aliexpress wants my bank statement id and credit card to verfy me
I've bought from them on numerous occasions. They're my main suppliers for micro controllers and tiny electronics. They're for when you don't want to negotiate with some supplier over Alibaba (i.e. small batches of stuff).
They're essentially Chinese eBay with one big difference: CONFIRMING GOODS RECEIVED MEANS FORFEITING YOUR RIGHT TO A RETURN OR REFUND.
Other than that can confirm AliExpress is legit, shipping slow as hell though. It's from China, what're you gonna do.
Hey /g/ remember that magic stick vaporware product a a month ago or so...
Apparently the have a bunch of news sites reporting about them. Are people really that stupid.
Let's see who can do better /g/