0

Alert Boxes in Java

I’ve been trying to create alert boxes in Java, but when I try to run the program, how can I tell if the Alert Box worked or not???

22nd Oct 2018, 4:23 AM
Ceillet
Ceillet - avatar
9 odpowiedzi
+ 3
Place these 3 lines in your JavaScript section alert("Hello World"); alert("I am testing these windows"); alert("Test Complete"); then run
22nd Oct 2018, 6:07 AM
BroFar
BroFar - avatar
+ 2
You mean JavaScript (instead of Java) ?
22nd Oct 2018, 6:30 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
its okay..i'll do so
23rd Oct 2018, 2:23 AM
Mayowa
+ 1
Mayowa ~ no disrespect but you need to post this as another q&a thread as it is off topic ~ Please and Thank you and "we" will respond there asap...
23rd Oct 2018, 2:22 AM
BroFar
BroFar - avatar
0
No, i mean Java.... is there no possible way to create an alert box in Java?
22nd Oct 2018, 10:41 PM
Ceillet
Ceillet - avatar
23rd Oct 2018, 12:40 AM
BroFar
BroFar - avatar
0
import java.io.BufferedReader; import java.io.InputStreamReader; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String s = br.readLine(); int i = Integer.parseInt(br.readLine());
23rd Oct 2018, 12:45 AM
BroFar
BroFar - avatar
0
import java.util.Scanner; Scanner reader = new Scanner(System.in); // Reading from System.in System.out.println("Enter a number: "); int n = reader.nextInt(); // Scans the next token of the input as an int. //once finished reader.close();
23rd Oct 2018, 12:48 AM
BroFar
BroFar - avatar
0
pls guys how can i apply c.s.s to my code using any editor e.g quoda,quick edit and anWriter
23rd Oct 2018, 2:15 AM
Mayowa