절대값 구하기
Math.abs()
거듭제곱 구하기
Math.pow(double 밑, double 지수)
parameter, return타입 모두 double.
리스트 역순 정렬
Collection.reverse(List<?> list)
String 역순 정렬
//1
String str = "abc";
List<String> list = Arrays.asList(str.split(""));
Collections.reverse(list);
String strReverse = String.join("", list); // "cba"
//2
String reverse = new StringBuilder("abc).reverse().toString(); //cba