2017-12-01 9 views

답변

1

내가이 , 당신이 할 수있는 학습 목적을위한 희망 :

String test = "abba"; 

    int l = test.length(); 
    boolean is = IntStream.range(0, test.length()/2) 
      .allMatch(x -> test.charAt(x) == test.charAt(l - x - 1)); 

    System.out.println(is);