两个字符串首尾相连,查看是否相同

import java.util.Scanner;

/*俩个字符串收尾相连,产看是否相同
 * 		3
		2
		helloworld
		hdlrowolle
		2
		helloworld
		worldhello
		2
		abcde
		acbde
 */

public class huan {
	public static void main(String[] args) {
		String[][] str = null;
		Scanner sc = new Scanner(System.in);
		System.out.println("输入");
		int n=sc.nextInt();
		str=new String[n][2];
		for(int i=0;i

 

你可能感兴趣的:(J算法)