/*
* 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_pisitif_negatif {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
int a = Integer.parseInt(JOptionPane.showInputDialog(“Masukkan angka ?”));
if(a >= 0){
JOptionPane.showMessageDialog(null, “Bilangan Positif”);
}
else{
JOptionPane.showMessageDialog(null, “Bilangan Negatif”);
}
}
}