Java language
Write a switch statement that checks nextChoice. If 0, print”Rock”. If 1, print “Paper”. If 2, print “Scissors”. For any othervalue, print “Unknown”. End with newline.
import java.util.Scanner;
public class Roshambo {
public static void main (String [] args) {
Scanner scnr = newScanner(System.in);
int nextChoice;
nextChoice = scnr.nextInt();
/* Your solution goes here */
}}
![CHALLENGE ACTIVITY .1: Rock-paper-scissors Write a switch statement that checks nextChoice. If 0, print Rock. If 1, print Paper. If 2, print Scissors. For any other value, print Unknown. End with newline. 1 import java.util.Scanner; 3 public class Roshambo 4 public static void main (String [] args) f 6 8 Scanner scnr- new Scanner (System.in); int nextChoice nextChoice = scnr.nextInt(); 9 Your solution goes here 12 13 Run](https://media.cheggcdn.com/media%2Fe23%2Fe236175f-00eb-480b-a0cf-1bba18fc181c%2FphpeYpNiX.png)
CHALLENGE
PayPal Gateway not configured
PayPal Gateway not configured