/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Source_Coding;
import javax.swing.JOptionPane;
/**
*
* @author Muhammad Khafid F
*/
public class bil_ganjil_genap {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
String a = JOptionPane.showInputDialog(“Masukkan Angka”);
int aa = Integer.parseInt(a);
if(aa % 2 !=0){
JOptionPane.showMessageDialog(null,”Bilangan Ganjil”);
}
else{
JOptionPane.showMessageDialog(null, “Bilangan Genap”);
}
}
}