------------------------------------------------------------------------------------------------
import javax.swing.*;
public class inputjop {
public static void main(String [] args) {
String input = JOptionPane.showInputDialog("Masukkan nama anda : ");
String nama = "Terimakasih, " + input;
JOptionPane.showMessageDialog(null,nama);
}
}
------------------------------------------------------------------------------------------------
Having completed the above script is typed, press F5, then the output will appear as shown below :
Post a Comment