Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Contatore {
- public int getValore() {
- return valore;
- }
- public void setValore(int valore) {
- this.valore = valore;
- }
- private int valore=0;
- public static void main(String[] args) {
- Contatore c= new Contatore();
- System.out.println("Valore del contatore: "+c.getValore());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement