标签:split ack util integer span oid col java stat
1 package test; 2 3 import java.util.Scanner; 4 5 public class MainClass { 6 7 public static void main(String[] args) { 8 Scanner sc = new Scanner(System.in); 9 int a = sc.nextInt(); 10 sc.nextLine(); 11 String str = sc.nextLine(); 12 String[] strArr = str.substring(1, str.length()-1).split(","); 13 int[] intArr = new int[strArr.length]; 14 for(int i=0;i<strArr.length;i++) { 15 intArr[i]=Integer.parseInt(strArr[i]); 16 } 17 18 } 19 20 }
标签:split ack util integer span oid col java stat
原文地址:https://www.cnblogs.com/qianyu12138/p/9325694.html