他的回复:
/** * ********************************************************* * * * @Author qierkang * @Title: AXTest.java * @ProjectName test-web * @Date Created in 2019-10-24 12:12 * @Class Description: [ TODO ] * [ Explain ] * * ********************************************************* *public class AXTest extends BaseTests { private static final Log log = LogFactory.get(); @Test public void Love1024() { int[] array = {0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 4, 5, 2, 3, 4, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; StringBuffer sb = new StringBuffer(); for (int i = 0; i array.length; i++) { if (i % 7 == 0) { sb.append(" \n"); } if (array[i] == 0) { sb.append(" "); } else if (array[i] == 4) { sb.append(" "); } else if (array[i] == 5) { sb.append("I"); } else if (array[i] == 2) { sb.append("️1024"); } else if (array[i] == 3) { sb.append(" ❤️You"); } else { sb.append(" " + "*"); } } System.out.println(sb.toString()); } }