+ 1
Why I can’t put an alert in my codeee!
19 odpowiedzi
0
you are very helpful thank you
+ 1
ok
+ 1
You're welcome :)
0
can you show your code?
0
first I put the answer with System.out.println() but i thought it was better to put the answer with an alert. Can you respond me another thing? How I use another line with System.out.println()?
0
well i think that alert doesnt exist in Java only in JavaScript
0
System.out.println(); will be good
0
but I want to write:
x1=answer
x2=answer
and not:
x1= answer x2=answer
0
Use "\n"
0
https://code.sololearn.com/c2A9ISXo6Mih/?ref=app
Doesn’t work
0
You have to use it in ""
0
can you write whatI should write?
0
System.out.println("x1= " + x1+"\nx2= " + x2);
0
spacer after n
0
thanks i’m going to try it
0
thank you, it worked
0
Another way is System.out.println("x1= " + x1);
System.out.println("x2= " + x2);
0
I would like tou use the alert but it isn’t possible :(