public class atom(){ private int electron; private int notron; private int proton; public atom(){ this.electron = 1; this.proton = 1; this.notron = 0; } public int getElectron() { return electron; } public void setElectron(int electron) { if(electron>=1){ this.electron = electron; }} public int getNotron() { return notron; } public void setNotron(int notron) { if(notron>=0){ this.notron = notron; }} public int getProton() { return proton; } public void setProton(int proton) { if(proton>=1){ this.proton = proton; }} }