0
JOptionPane
Can someone teach me how to use JOptionPane with loop and the output will be a number triangle,
1 Réponse
+ 2
so you need to look at
âą basic structure of a Java program with main()
âą using an int variable
âą for() loop.
// simple output
then
âą how to run java on computer, offline
âą String variable
âą Integer.parseInt()
âą import JOptionPane
âą JOptionPane as input
âą JOptionPane as output
also understand triangle numbers (as a number sequence)
https://docs.oracle.com/en/java/javase/23/docs/api/java.base/java/lang/Integer.html#parseInt(java.lang.String)
https://www.geeksforgeeks.org/java-joptionpane/
https://docs.oracle.com/en/java/javase/23/docs/api/java.desktop/javax/swing/JOptionPane.html