public class myapp { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("Hello Java!"); System.out.print("你好,Java! "); //会不会相当于换行.执行完之后换行 System.out.println("Do You Know?"); System.…
import edu.princeton.cs.algs4.*; public class No_1_1_13 { public static void main(String[] args) { int m=4; int n=3; int [][] a = new int[m][n]; for(int i=0;i<m;i++) { for(int j=0;j<n;j++) { a[i][j]=i+j; StdOut.print(a[i][j]); } StdOut.println(); }…