I have made 3 random numbers made strings from them. I don't know why my colors are outputting nullnullnull, instead of B,R,or G in any order.Any help is appreciated.I am only allowed to use methods, random numbers, if statements, and strings. MY CODE:
 public static void main(String[] args) {
        // TODO code application logic here
    randomWholeNumber(colour,colour2,colour3);
   newGame(colour,colour2,colour3);
    }
    static void randomWholeNumber(String colour,String colour2,String colour3){
        int randnum=(int)(Math.random()*3);
        if(randnum==0){
        }
        else if(randnum==1){
        }
        else if(randnum==2){ 
        int randnum2=(int)(Math.random()*3);
        if(randnum2==0){
        }
        else if(randnum2==1){
        }
        else if(randnum2==2){ 
        int randnum3=(int)(Math.random()*3);
        if(randnum3==0){
        }
        else if(randnum3==1){
        }
        else if(randnum3==2){ 
    }
        }
        }
    }
    static void newGame(String colour,String colour2,String colour3){
        System.out.println(colour+colour2+colour3);
    }
 
     
     
     
     
    