Professional Documents
Culture Documents
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this
license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
*/
package tugascalculator;
/**
*
* @author IVAN SAWADLUDYANSYAH
*/
public class TugasCalculator {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
kalkulator.isiOperan1(5);
kalkulator.isiOperan2(2);
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this
license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/
package tugascalculator;
/**
*
* @author IVAN SAWADLUDYANSYAH
*/
class Calculator {
private double operan1;
private double operan2;
public void isiOperan1(double x) {
operan1 = x;
}