-2
System.out.println("Please enter a coefficients of a polynomial’s terms:");
String coefficents = keyboard.nextLine();
String[] three = coefficents.split(" ");
int[] intArray1 = new int[three.length];
for (int i = 0; i < intArray1.length; i++) {
System.out.print(intArray1[i]);
}
//有誰知道,因爲權不是建立我如何使這項工作,但是當我運行它,它給我如果0我需要創建一個用戶,它的工作原理給定數字數組,但一直給我0
//有人能告訴我或給我解釋一下什麼是錯的,這將有助於
您創建的數組,然後從來沒有把任何東西在裏面。 – chrylis
添加這個作爲循環的第一行:'intArray1 [i] = Integer.parseInt(three [i]);' – Bohemian