* 중복의 제거 -> 메소드 사용으로 극복가능 class는 객체객체는 하나의 프로그램같은 것프로그램 내부에는 변수,메소드 등등의 기능이 있기때문. package soobin; class Calculator { // 객체 생성 int left,right; // 클래스 내부 변수 선언 public void setOperands(int left, int right){ // this.위에있는클래스내부변수 = 매개변수 // 매개변수와 클래스내부변수의 모양이 같을때 this연산자를 이용 this.left = left; this.right = right; } public void sum() { System.out.println("sum = "+(this.left+this.right)); } public void av..