Bonjour à tous !
Pourquoi mon programme ne marche pas ?
Mon programme est le suivant :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import java.util.Scanner;
 
public class FinProgramme {
 
	public static void main(String[] args) {
 
		Scanner sc = new Scanner(System.in);
 
		String phrase;
		do	{		
		System.out.println("Ecrivez une phrase");
		String phrase = sc.nextLine();
		System.out.println("Vous avez écrit : "+phrase);
 
			System.out.println("Voulez vous arrêter ? Si oui, tapez 'end'");
			String phrase = sc.nextLine();
 
		} while (phrase != "end");
		System.out.println("à bientot");
 
 
	}
}