Whenever I input a numbers for example 3,14*10 in nums it throws an exception and I need to be able to input numbers combined with operations like that and then should the program give me the minimum
import java.util.Scanner;
public class Aufgabe3_1 {
public static void main(String[] args) {
int[] nums;
nums = new int[3];
Scanner keyboard = new Scanner(System.in);
System.out.println("Bitte geben Sie Drei Zahlen ");
for(int i = 0 ; i < nums.length ; i++) {
nums[i] = keyboard.nextInt();
}//end for
}
}