隱藏文章


/***
 * ━━━━ Code is far away from ━━━━━━
 *     ()      ()
 *     ( )    ( )
 *     ( )    ( )
 *   ┏┛┻━━━┛┻┓
 *   ┃   ━   ┃
 *   ┃ ┳┛ ┗┳ ┃
 *   ┃   ┻   ┃
 *   ┗━┓   ┏━┛
 *     ┃   ┃
 *     ┃   ┗━━━┓
 *     ┃       ┣┓
 *     ┃       ┏┛
 *     ┗┓┓┏━┳┓┏┛
 *      ┃┫┫ ┃┫┫
 *      ┗┻┛ ┗┻┛
 * ━━━━ bug with the more protecting ━━━
 * <p/>
 * Created by PangHaHa12138 on 2017/6/22.
 */
public class test {

        public static void main(String args[]){

            String msg1 = "",msg2="",msg3="",msg4="";

            String[] arr = new String[]{"過","忘","飄","愛","漫","土","但","長","蓀","泥","愿","香",
                    "夏","聞", "葉","沉","人","未","自","花","盛","草","園","不","夕","是","今"};

            int[] index1 = new int[]{20,19,3,12,15,18,14};
            int[] index2 = new int[]{21,13,5,23,22,8,9};
            int[] index3 = new int[]{7,11,10,6,16,12,1};
            int[] index4 = new int[]{24,2,3,27,25,26,17};

            for (int i : index1) {
                msg1 = arr[i];
            }

            for (int i : index2) {
                 msg2 = arr[i];
            }

            for (int i : index3) {
                 msg3 = arr[i];
            }

            for (int i : index4) {
                 msg4 = arr[i];
            }

            System.out.println("這首詩是"+msg1+msg2+msg3+msg4);

        }





}

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容