0
Write a program
write a program which accept n integers in array .handle appropriate exception
2 Respostas
+ 4
(regrets not being good in Java) so you want multiple inputs in one input command and then split them into n different terms?
Like
a=1,2,3,4,5 (input)
w,x,y,z,v=a
??
+ 4
Use a Scanner to take the input, use a try catch to handle any exceptions.
Use a loop to add each input into an array.