1. R

    Random generated array does not print small value correctly

    My code is not working because it is always printing small value as 0. Thanks in advance for your help. public class Tests { public static void main(String [] args){ int [] num=new int[10]; Random random= new Random(); //1st time both big and small value will be at...
  2. R

    Looping within switch statements

    I am wondering what the most efficient method for looping within a switch statement would be. Below I have a userInput variable and would like suggestions if an if/then statement would be better implemented here to continue my menu selection until -1 is entered to exit my program, or if a...