it's a good idea to seperate a model where you put the busisness logic (in your example : how you count the annualcompensation),
the I/O of your program (where you ask the data) and a place where...
Type: Posts; User: alaindhaene
it's a good idea to seperate a model where you put the busisness logic (in your example : how you count the annualcompensation),
the I/O of your program (where you ask the data) and a place where...
When you use a JComboBox it's good practice the use a ComboBoxModel to organise the data. Then you can use a constructor of JComboBox model where you can give the model as parameter. So you work on...
In the class main:
ch=ob.nextInt();
ob is a calculator object and don't recognize the methode nextInt() who belongs to a Scanner object.
while(n<5);
the variabele n is not declared in the...
A Iterator is just an manner to iterate over a collection. When you look to the API it has no methods to say when a element is in the collection.
First off all it's not a good idea setting layout programmatically.
Button button = new Button(this);
bt.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));
In your main program make a datastructure of amber objects (e.g ArrayList) en provide this with amber objects (with your createFossils methode) then with a iterator object you can use your...