+ 1

Why I can’t put an alert in my codeee!

19th Aug 2018, 1:17 PM
Artur Spain 🇪🇸
19 Respostas
0
you are very helpful thank you
19th Aug 2018, 2:41 PM
Artur Spain 🇪🇸
+ 1
ok
19th Aug 2018, 2:04 PM
Artur Spain 🇪🇸
+ 1
You're welcome :)
19th Aug 2018, 2:43 PM
Kapi
0
can you show your code?
19th Aug 2018, 1:30 PM
Kapi
19th Aug 2018, 2:09 PM
Artur Spain 🇪🇸
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()?
19th Aug 2018, 2:10 PM
Artur Spain 🇪🇸
0
well i think that alert doesnt exist in Java only in JavaScript
19th Aug 2018, 2:13 PM
Kapi
0
System.out.println(); will be good
19th Aug 2018, 2:13 PM
Kapi
0
but I want to write: x1=answer x2=answer and not: x1= answer x2=answer
19th Aug 2018, 2:15 PM
Artur Spain 🇪🇸
0
Use "\n"
19th Aug 2018, 2:18 PM
Kapi
19th Aug 2018, 2:22 PM
Artur Spain 🇪🇸
0
You have to use it in ""
19th Aug 2018, 2:24 PM
Kapi
0
can you write whatI should write?
19th Aug 2018, 2:31 PM
Artur Spain 🇪🇸
0
System.out.println("x1= " + x1+"\nx2= " + x2);
19th Aug 2018, 2:35 PM
Kapi
0
spacer after n
19th Aug 2018, 2:35 PM
Kapi
0
thanks i’m going to try it
19th Aug 2018, 2:38 PM
Artur Spain 🇪🇸
0
thank you, it worked
19th Aug 2018, 2:40 PM
Artur Spain 🇪🇸
0
Another way is System.out.println("x1= " + x1); System.out.println("x2= " + x2);
19th Aug 2018, 2:40 PM
Kapi
0
I would like tou use the alert but it isn’t possible :(
19th Aug 2018, 2:41 PM
Artur Spain 🇪🇸