-compareTo(String another)1. compareTo는 숫자타입과 String 타입을 모두 비교해준다. (1) 숫자 비교 숫자의 비교 같은 경우는 단순히 크다(1), 같다(0), 작다(-1) 의 관한 결과값을 리턴 public class CompareToTest{ public static void main(String[] args){ Integer x = 3; Integer y = 4; Double z = 1.0; System.out.println( x.compareTo(y) ); // -1 System.out.println( x.compareTo(3) ); // 0 System.out.println(..