You are on page 1of 1

/*

* To change this license header, choose License Headers in Project Properties.


* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package javafundamentsl;
import java.util.Scanner;
import java.text.NumberFormat;

/**
*
* @author Caduur
*/
public class JavaFundamentsl {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
String role = "admin";
switch (role) {
case "admin":
System.out.println("You are an admin");
break;

case "moderator":
System.out.println("you're a guest");
break;
default:
System.out.println("you're a guest");
}

You might also like