static
) or instances (by default)
this
, it is a reference to the object which received the messageint getInt(JTextField aTF) { try { int n = Integer.parseInt(aTF.getText()); return n; } catch (NumberFormatException e) { return INPUT_ERROR; } }
for (int i=0; i<list.length; i++) sout(list[i]); or for (int nextInt: list) sout(nextInt);