标签:http jdk main 方法 htm int 问题 ofo java
参考:https://www.cnblogs.com/baiaixing/p/11369514.html
如:
1 public class DemoForEach { 2 public static void main(String[] args) { 3 int[] a={0,1,2,3,4,5}; 4 for(int x:a){ 5 System.out.println(x); 6 } 7 }
3. jdk自带方法:java.util.Arrays.toString()
import java.util.Arrays; public class Solution { public static void main(String[] args) { int[] a = {9, 23, 43, 2, 7, 9}; System.out.println(Arrays.toString(a)); } }
标签:http jdk main 方法 htm int 问题 ofo java
原文地址:https://www.cnblogs.com/ruiliu21/p/13151655.html