scusate riepilogo
creo
Codice PHP:
public class Dipendente {
private double stipendio;
private String nome;
public Dipendente()
{
nome = "";
stipendio = 0;
}
public Dipendente(String nomeDip, double stipendioDip)
{
nome = nomeDip;
stipendio = stipendioDip;
}
public double getStipendio()
{
return stipendio;
}
public void setStipendio(double stipendioDip)
{
stipendio = stipendioDip;
}
public String getNome()
{
return nome;
}
public void setNome(String nomeDip)
{
nome = nomeDip;
}
}
poi per testarlo creo
Codice PHP:
public class DipendenteTest {
public static void main(String[] args) {
Dipendente abcdip = new Dipendente();
abcdip.nomeDip="Gianni";
abcdip.stipendioDip=300;
System.out.println(getNome());
System.out.println(getStipendio());
}
}
poi ho selezionato il path, ho scelto il desktop come destinazione e in pratica mi ritrovo due cartelle (Dipendente e DipendenteTest) con due sottocartelle "src" e "classes". nelle sottodirectory che stanno sotto a DipendenteTest ho provato pure a copiare nella "classes" il file "Dipendente.java" ma niente da fare....help me....
ma voi comre risolveste il problema da zero?
comunque grazie 1000!