j'ai commencé le java hier mais j'ai un probleme je n'arrive pas a saisir une chaine de caractere dans ce programme
import java.util.Scanner;
public class sdz2 {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
System.out.println("Quelle opérations voulez vous éffectuer ? \n 1 - Addition \n 2 - Soustraction \n 3 - Multiplication \n 4 - Division \n");
int rep0 = sc.nextInt();
System.out.println("Sélectionnez les deux nombres que vous voulez calculer:\n");
float b = sc.nextFloat();
float c = sc.nextFloat();
float r = 0;
switch(rep0)
{
case 1:
r = b+c;
break;
case 2:
r = b-c;
break;
case 3:
r = b*c;
break;
case 4:
r = b/c;
break;
}
System.out.println("le résultat est : " + r);
System.out.println("Revoulez vous faire un autre calcul ? oui / non");
/*
JE PENSE QUE L ERREUR COMMENCE ICI
String rep1 = sc.nextLine();
System.out.println("Vous avez choisi:" + rep1);
switch(rep1)
{
case("oui"):
return;
}
}
}
mais quand je lance ce simple programme la saisie fonctionne 
import java.util.Scanner;
public class essai {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Veuillez saisir un mot :");
String str = sc.nextLine();
System.out.println("Vous avez saisi : " + str);
}
}
j'espere que vous pourriez m'aider
