I want to store data's using array untill user input nomore the program must execute then calculate its sum from inputed number | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I want to store data's using array untill user input nomore the program must execute then calculate its sum from inputed number

Need in java programming

18th Mar 2020, 5:57 PM
Ayush Bajgai
Ayush Bajgai - avatar
1 Answer
+ 1
Read a line of input as String and then split by delimiter (space, comma etc. you decide) Then use parse*** method from appropriate wrapper class(Integer ,Float etc. as per your requirement) Rest of the things are easy. At least try to do and show code if you need help.
18th Mar 2020, 6:01 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar