JUST A NEWBIE LOOKING FOR HELP | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

JUST A NEWBIE LOOKING FOR HELP

Hey, I'm new with all this, and i would really like to add some well-experienced people that are willing to help me out by answering questions that i may give you, thanks ❤

28th Nov 2017, 9:23 PM
Ima Twottle
Ima Twottle - avatar
11 Answers
+ 1
Go on.
28th Nov 2017, 9:55 PM
jamilxt
jamilxt - avatar
+ 1
nope. :)
28th Nov 2017, 10:09 PM
jamilxt
jamilxt - avatar
+ 1
https://code.sololearn.com/co3LZ32cbNL1/?ref=app check this code. Try to get the idea of switch - control flow. In that code, there is a mistake. Comment the mistake if you get it. ^_^
28th Nov 2017, 10:32 PM
jamilxt
jamilxt - avatar
0
aight
28th Nov 2017, 10:02 PM
LunarCoffee
LunarCoffee - avatar
0
is there no way to message people privately?
28th Nov 2017, 10:04 PM
Ima Twottle
Ima Twottle - avatar
0
ugh, that sucks, well anyways if you could please go into my profile and youll find a thing called "help me pls", im trying to understand how the switch function works in java, and i just can't seem to get it
28th Nov 2017, 10:11 PM
Ima Twottle
Ima Twottle - avatar
0
If i run the code as is, it just says "time limit exceeded", and i don't understand why
28th Nov 2017, 10:12 PM
Ima Twottle
Ima Twottle - avatar
0
uh, it doesn't teach anything i don't already know, I'm trying to do something else with the switch function, but i have no idea how
28th Nov 2017, 10:39 PM
Ima Twottle
Ima Twottle - avatar
0
I think this code is the problem, I don't understand what it is supposed to do but I am not surprised it loops: https://code.sololearn.com/c46TlSqSfkZa/?ref=app
29th Nov 2017, 3:09 AM
Paul
Paul - avatar
0
@Ima break statement is missing here. And, Your while loop doesn't make sense. Just focus on both Switch & While Loop individually.
29th Nov 2017, 6:21 AM
jamilxt
jamilxt - avatar
0
Okay, i just fixed it, but it doesn't do exactly what i wanted it to do, let me explain what im trying to do. I'm trying to make a code that starts with the input of x=0, and then i want it to cycle through each case which changes the x into 1,2, and then finally 3. when it reaches three i want it to stop and say "this shit is hard" so basically the output i'm looking for is as follows: 0 1 2 3 this shit is hard
29th Nov 2017, 7:14 AM
Ima Twottle
Ima Twottle - avatar