/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		System.out.println("Com Break: "+ comBreak(1));
		System.out.println("Com Return: "+ comReturn(1));
	}
	
	public static String comBreak(int mes){
		String mesExtenso = "";
		switch (mes){
			case 1: 
				mesExtenso = "Janeiro";
				break;
			case 2: 
				mesExtenso = "Fevereiro";
				break;				
			case 3: 
				mesExtenso = "Março";
				break;				
			default: 
				mesExtenso = "Mês inválido";
				break;				
		}
		System.out.println("Instruções executadas antes do return");
		return mesExtenso;
	}


	public static String comReturn(int mes){
		
		switch (mes){
			case 1: 
				return "Janeiro";
			case 2: 
				return "Fevereiro";
			case 3: 
				return "Março";
			default: 
				return "Mês inválido";
		}
		//Qualquer instrução daqui para baixo gera o erro "unreachable statement"
		//return "Forever alone :( ....";
		
	}	
	
}