求解1,2,2,3,4,5,组成不同的6位数,要求3,5不能相连,4不是第三位
先用递归求出字符串为122345可能的所有集合,然后转为string数组,判断是否符合3,5不能相连,4不是第三位的要求
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package file;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
/**
*
* @author 94772
*/
public class XX {
public static void main(String[] args){
String[] arr