o-0's blog

By o-0, 10 years ago, In English

public class HelloWorld{

public static void main(String []args){
    Scanner in = new Scanner(System.in);
    String line = in.nextLine();
    int n = in.nextInt();
    String[] tokens = line.split("");
    StringBuffer l =  new StringBuffer();
    int length = line.length / n;
    for(int i = 0; i < n;i++){
        for

    }

 }
public static boolean isPalindrome(String str) {
    return str.equals(new StringBuilder(str).reverse().toString());
}

}

  • Vote: I like it
  • 0
  • Vote: I do not like it