Last active
August 29, 2015 14:17
-
-
Save mizucoffee/ba5adc7f87db2370ee71 to your computer and use it in GitHub Desktop.
プログラミング生放送 俳句コンテスト Short ver.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Random; | |
public class Short_Haiku { | |
public static void main(String[] args) throws Exception { | |
String data = "プロ生ちゃん / プログラマーの/ 癒しの子 "; | |
String[] strAry = data.split("/"); | |
for (int i = 0; i < 7; i++){ | |
System.out.print(strAry[2].substring(i,i+1)); | |
System.out.print(strAry[1].substring(i,i+1)); | |
System.out.println(strAry[0].substring(i,i+1)); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment