Program menggabungkan kata penggunakan Java

Program menggabungkan kata penggunakan JoptionPane.


import javax.swing.JOptionPane;

public class KataTerakhir2{

public static void main(String[] args){

String word1 = JOptionPane.showInputDialog(“Word1”);

String word2 = JOptionPane.showInputDialog(“Word2”);

String word3 = JOptionPane.showInputDialog(“Word3″);

JOptionPane.showMessageDialog(null, word1+” “+word2+” “+word3);





About heni
I ♡ movie, traveling, fruits Worry less smile more fell happy anyway :)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: