Skip to content

Instantly share code, notes, and snippets.

@eriwiana
Created April 21, 2015 02:02
Show Gist options
  • Save eriwiana/8e2b2ae484c67b9fcc18 to your computer and use it in GitHub Desktop.
Save eriwiana/8e2b2ae484c67b9fcc18 to your computer and use it in GitHub Desktop.
KonversiDollar
package konversi;
public class KonversiDollar {
private int ValueDollar;
private double KonversiNilai;
private String KonversiInput;
public KonversiDollar(){}
public KonversiDollar(String KonversiInput){
}
public String getKonversiInput(String getKonversiInput){
KonversiInput = getKonversiInput;
System.out.println(KonversiInput);
return KonversiInput;
}
public double setValueDollar (double getvalD){
KonversiNilai = getvalD;
return KonversiNilai;
}
public void getValueDollar (){
ValueDollar = 11457;
KonversiNilai = ValueDollar * KonversiNilai;
System.out.println(KonversiNilai);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment