import java.util.Scanner; public class ArrayTest{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
String[] book = new String[3];
String[] bookNum = new String[3];
int[] bookPrice = new int[3];
for(int i = 0; i< book.length; i++){
System.out.println("请输入第"+(i+1) +"本书的书名:");
book[i] = sc.next();
System.out.println("请输入第"+(i+1) +"本书的编号:");
bookNum[i] = sc.next();
System.out.println("请输入第"+(i+1) +"本书的价格:");
bookPrice[i] = sc.nextInt();
}
System.out.print("书名\t编号\t价格\n");
for(int j = 0; j < book.length;j++){
System.out.print(book[j]+"\t"+bookNum[j]+"\t"+bookPrice[j]+"\n");
}
}
}