r/programmingrequests • u/MUFC07 • Mar 23 '17
[Request] Basic Java program
I need a program that restricts an array to size 2 or 3 and then sort it from smallest to largest? Additionally I need the program to print an error message if the array size is not 2 or 3 Thank you for all the help I really appreciate it.
0
Upvotes
1
u/[deleted] Mar 23 '17
I don't understand your requirements but, Is this what you are looking for?