code: public static void printButtons(int buttonNumber){
  		boolean buttonPressed = false;
  		System.out.print("Button Pressed: ");
  		for(int i=0;i<7;i++){
  			if((buttonNumber & (1<<i)) != 0){
  				System.out.println(i+" ");
  				buttonPressed = true;
  			}
  		}
  
  
  
  		if(!buttonPressed){
  			System.out.println("None ");
  		}
  	}
docs: This function prints out the button numbers from 0 through 6
  @param buttonNumber