当前位置:编程学习 > JAVA >>

递归问题!!!

acbbccbb输出abbc、bbccbb
哪位大神能帮忙写出来啊 java --------------------编程问答-------------------- 路过的大神帮帮忙啊 --------------------编程问答--------------------

public class Toto {
    
    public static void acbbccbb(){
        System.out.println("abbc");
        System.out.println("bbccbb");
    }
    
    public static void main(String... args) throws IOException {
        acbbccbb();
    }
}
--------------------编程问答-------------------- 首先你自己要表达什么意思都没说清楚,
把帖子改改,说清楚 --------------------编程问答--------------------
引用 2 楼 yktd26 的回复:

public class Toto {
    
    public static void acbbccbb(){
        System.out.println("abbc");
        System.out.println("bbccbb");
    }
    
    public static void main(String... args) throws IOException {
        acbbccbb();
    }
}

哈哈哈 --------------------编程问答--------------------
引用 2 楼 yktd26 的回复:

public class Toto {
    
    public static void acbbccbb(){
        System.out.println("abbc");
        System.out.println("bbccbb");
    }
    
    public static void main(String... args) throws IOException {
        acbbccbb();
    }
}
你太强大了
--------------------编程问答--------------------
Quote: 引用 4 楼 feier00 的回复:

Quote: 引用 2 楼 yktd26 的回复:

[code=java]
public class Toto {
    
    public static void acbbccbb(){
        System.out.println("abbc");
        System.out.println("bbccbb");
    }
    
    public static void main(String... args) throws IOException {
        acbbccbb();
    }
}
相当的牛X --------------------编程问答--------------------
引用 5 楼 u010241813 的回复:
Quote: 引用 2 楼 yktd26 的回复:


public class Toto {
    
    public static void acbbccbb(){
        System.out.println("abbc");
        System.out.println("bbccbb");
    }
    
    public static void main(String... args) throws IOException {
        acbbccbb();
    }
}
你太强大了
--------------------编程问答--------------------
引用 2 楼 yktd26 的回复:

public class Toto {
    
    public static void acbbccbb(){
        System.out.println("abbc");
        System.out.println("bbccbb");
    }
    
    public static void main(String... args) throws IOException {
        acbbccbb();
    }
}

我辈楷模 --------------------编程问答--------------------
引用 2 楼 yktd26 的回复:

public class Toto {
    
    public static void acbbccbb(){
        System.out.println("abbc");
        System.out.println("bbccbb");
    }
    
    public static void main(String... args) throws IOException {
        acbbccbb();
    }
}

神回复啊 --------------------编程问答-------------------- 我只想说,问题说清楚先。 --------------------编程问答--------------------

public static void main(String[] args){
   String s = "acbbccbb";
   String s1 = s.substring(0,1)+s.substring(s.indexOf("c")+1,s.indexOf("c")+4);
   String s2 = s.substring(s.indexOf("c")+1);
   System.out.println(s1);
   System.out.println(s2);
}

--------------------编程问答-------------------- 都是大神。。。 --------------------编程问答--------------------
引用 楼主 dfadfasdfa 的回复:
acbbccbb输出abbc、bbccbb
哪位大神能帮忙写出来啊


abbc
bbccbb
bccbbcab
ccbbcabbcc

这个规律么? --------------------编程问答--------------------
引用 7 楼 lye2000000_super 的回复:
Quote: 引用 5 楼 u010241813 的回复:

Quote: 引用 2 楼 yktd26 的回复:


public class Toto {
    
    public static void acbbccbb(){
        System.out.println("abbc");
        System.out.println("bbccbb");
    }
    
    public static void main(String... args) throws IOException {
        acbbccbb();
    }
}
你太强大了
灰常给力 --------------------编程问答-------------------- 不是一般的牛 --------------------编程问答--------------------
引用 2 楼 yktd26 的回复:

public class Toto {
    
    public static void acbbccbb(){
        System.out.println("abbc");
        System.out.println("bbccbb");
    }
    
    public static void main(String... args) throws IOException {
        acbbccbb();
    }
}

楼主问题都没表示清楚    你想得到什么答案?   我觉得这个答案不错  --------------------编程问答-------------------- 问题在哪?递归在哪?强烈表示看不懂lz什么意思
补充:Java ,  Web 开发
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,