Menu Dari JOption
Coding dibawah ini :
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package praktikumjava;
import javax.swing.JOptionPane;
public class MenuDariJOption {
private static String name;
private static String des;
private static String gender;
private static String kelamin;
private static int validDes;
static StringBuilder binerHasil = new StringBuilder();
static StringBuilder hexaHasil = new StringBuilder();
static StringBuilder oktalHasil = new StringBuilder();
static String sc;
public static void keBiner(int n) {
if (n > 1) {
keBiner(n / 2);
}
System.out.print(n % 2);
binerHasil.append(n % 2);
// binerHasil.append("\033");
}