ma si dai, mettiamolo anche in java LOL
Codice:package stringhe; import java.io.*; public class Stringhe { public static void main(String[] args) { String a = null, b = null, c = null; InputStreamReader tast = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(tast); try { System.out.println("Inserisci stringa A:"); a = br.readLine(); System.out.println("Inserisci stringa B:"); b = br.readLine(); System.out.println("Inserisci stringa C:"); c = br.readLine(); } catch (IOException ex) { System.out.println("ERRORE I/O"); } if (a.compareTo(b) == 0 && b.compareTo(c) == 0) { System.out.println("Tutte uguali"); } else { if (a.compareTo(b) == 0) { System.out.println("A == B"); } else { if (a.compareTo(c) == 0) { System.out.println("A == C"); } else { if (b.compareTo(c) == 0) { System.out.println("B == C"); } else { System.out.println("Tutte divese"); } } } } } }