Article From:https://www.cnblogs.com/samhx/p/9972594.html

# P1060 Tam Haoqiang C Language Exercise 7.5 (Third Edition)

Pay attention to the space at the end of the line.

``````import java.util.*;
import java.io.*;
import java.math.*;
import java.lang.Character;

public class Main
{
public static void main(String args[])
{
Scanner cin=new Scanner(System.in);
int[] arr=new int[10];
for(int i=0;i!=10;++i)
arr[i]=cin.nextInt();
for(int i=9;i>=0;--i)
{
System.out.print(arr[i]);
if(i!=0) System.out.print(" ");
else System.out.print("\n");
}
}
}``````

# P1064 Tam Haoqiang C Language Exercise 8.4 (Third Edition)

``````import java.util.*;
import java.io.*;
import java.math.*;
import java.lang.Character;

public class Main
{
public static void main(String args[])
{
Scanner cin=new Scanner(System.in);
int[][] arr=new int[3][3];
for(int i=0;i!=3;++i)
for(int j=0;j!=3;++j)
arr[i][j]=cin.nextInt();
for(int j=0;j!=3;++j)
{
for(int i=0;i!=3;++i)
{
System.out.print(arr[i][j]);
System.out.print(" ");
}
System.out.print("\n");
}
}
}``````

# ```import java.util.*; import java.io.*; import java.math.*; import java.lang.Character; public class Main { public static void main(String args[]) { Scanner cin=new Scanner(System.in); String a=cin.next(); String reverse=new StringBuffer(a).reverse().toString(); System.out.println(reverse); } }```

Link of this Article: Topic Code P1060-P1065 (Java)