Presentation is loading. Please wait.

Presentation is loading. Please wait.

J AVA : JO PTION P ANE JOptionPane.showMessageDialog: Permit to create a windows where you can write a message which will be visible on screen. JOptionPane.showInputDialog:

Similar presentations


Presentation on theme: "J AVA : JO PTION P ANE JOptionPane.showMessageDialog: Permit to create a windows where you can write a message which will be visible on screen. JOptionPane.showInputDialog:"— Presentation transcript:

1 J AVA : JO PTION P ANE JOptionPane.showMessageDialog: Permit to create a windows where you can write a message which will be visible on screen. JOptionPane.showInputDialog: Permit to create a windows where you can insert an element, for example, numbers end characters.

2 JO PTION P ANE. SHOW M ESSAGE D IALOG Str= "esempio di prova! " JOptionPane.showMessageDialog(null,str) JO PTION P ANE. SHOW I NPUT D IALOG String stin=JOptionPane. showInputDialog("inserire un numero"); int numero=Integer. parseInt(stin);

3 J AVA : CYCLE FOR AND WHILE While( condition ){ Body of cycle;} Condition: is the condition of the loop control, when the condition is true the loop body is executed. For( variable declaration; condition; incrementing variable){ Body of cycle;} Variable: is the control variable of the loop Condition: is equal to the while loop Incrementing: is the incrementing of variable until the condition is false. This permit to stop the cycle.


Download ppt "J AVA : JO PTION P ANE JOptionPane.showMessageDialog: Permit to create a windows where you can write a message which will be visible on screen. JOptionPane.showInputDialog:"

Similar presentations


Ads by Google