Test1.java 335 B

123456789101112
  1. package com.sf;
  2. public class Test1 {
  3. public static void main(String[] args) {
  4. int[] arr = {1,2,3,4,5};
  5. char[] word = {'h','e','l','l','o'};
  6. String[] heros = {"袁隆平","邓稼先","钱学森"};
  7. System.out.println(arr);
  8. System.out.println(word);
  9. System.out.println(heros);
  10. }
  11. }