0

Write a program

write a program which accept n integers in array .handle appropriate exception

31st Aug 2017, 8:53 AM
Alam Shaikh
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 ??
31st Aug 2017, 9:33 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 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.
31st Aug 2017, 4:47 PM
Rrestoring faith
Rrestoring faith - avatar