Friday, August 29, 2014

Latihan JOptiaonPane [Java]

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author MIFYAHUL ILMI
 */
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import javax.swing.JOptionPane;
public class Latihan2JOP {
    public static void main(String[]args){
   BufferedReader dataIn = new BufferedReader(new
InputStreamReader(System.in) );
int[] tampung=new int [11];
int ukuranLarik=10;
int i=1;
while(1<=10){
String x="";
x=JOptionPane.showInputDialog("Masukkan Angka ke "+i);
tampung [i]=Integer.valueOf(x).intValue();
i++;
}
int a = tampung [0];
for (int max = 0; max

No comments:

Post a Comment