Ah, meglio, pensavo ci fossero più modifiche, che purtroppo il mio libro parla del 1.4, e sto tentando di utilizzare il 1.5
codice:
import javax.swing.*;
public class stringhe {
public static void main(String[] args) {
String s1 = "ciao";
String output = "s1: " + s1;
s1 = "ss";
Integer = 5;
JOptionPane.showMessageDialog(null, output, "Sskdn", JOptionPane.INFORMATION_MESSAGE);
s1 = "ssaafR";
output = "s1: " + s1;
JOptionPane.showMessageDialog(null, output, "Sskdn", JOptionPane.INFORMATION_MESSAGE);
System.exit(0);
}
}
D:\Programmazione\java\EsercizziStringhe>javac stringhe.java
stringhe.java:11: cannot find symbol
symbol : variable Integer
location: class stringhe
Integer = 5;
^
1 error
D:\Programmazione\java\EsercizziStringhe>javac -version
javac 1.5.0_04
javac: no source files
Usage: javac <options> <source files>
where possible options include:
Però non capisco perchè mi dia errore