public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
String matrik1[]={"a","b","c","d","e","f","g","h","i","j","k","l","m",
"n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9",}; 1X
String matrik3[]={"g","k","m","w","q","y","x","z","n","o","p","a","r",
"u","t","v","z","h","j","l","b","c","d","e","f","i",
"7","5","3","2","6","8","9","4","0","1","*"}; 1X
String input = JOptionPane.showInputDialog(null, "Masukkan sandi anda").toUpperCase(); 1X
char x[] = input.toCharArray(); 1X
for (int i = 0; i < x.length; i++) { 1X+nX+nX
for (int j = 0; j < matrik3.length; j++) { 1X+nX+nX
if(String.valueOf(x[i]).equalsIgnoreCase(matrik3[j])) { 1X
System.out.print(matrik1[j]); 1X
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
String matrik1[]={"a","b","c","d","e","f","g","h","i","j","k","l","m",
"n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9",}; 1X
String matrik3[]={"g","k","m","w","q","y","x","z","n","o","p","a","r",
"u","t","v","z","h","j","l","b","c","d","e","f","i",
"7","5","3","2","6","8","9","4","0","1","*"}; 1X
String input = JOptionPane.showInputDialog(null, "Masukkan sandi anda").toUpperCase(); 1X
char x[] = input.toCharArray(); 1X
for (int i = 0; i < x.length; i++) { 1X+nX+nX
for (int j = 0; j < matrik3.length; j++) { 1X+nX+nX
if(String.valueOf(x[i]).equalsIgnoreCase(matrik3[j])) { 1X
System.out.print(matrik1[j]); 1X
= 8X+4nX
F.Handy Pranata
2012420144
F.Handy Pranata
2012420144
Posted by 06.14 and have
0
komentar
, Published at
Tidak ada komentar:
Posting Komentar