show me how you have done so far or is there any idea to solve your problem?
Type: Posts; User: wookyoo
show me how you have done so far or is there any idea to solve your problem?
Method has return type and () , declared within class, it's name starts lower case.
Class has no return type, can have methods, variables, it's name starts from capital.
What else?
Figure out step by step what you want within your program.
If you want user to do some actions then 'scanner' might be good idea to start.
I think you can make object array.
Each object saved in the array has two values which are name and mark.
Can you make one more class?
and i run your program and i got '1: Je hebt 0 juiste.'
what do you mean by 'it is supposed to be 1 not +5'?
there is no 1 in your variables....
is it your first time? then.. read some basic java posts... and please at least explain what you wanna do in your code and what is errors more..
mm i can see some mistakes here.
so you wanna seperate odd and even number, right?
but what is result of 'randomNum / 2 == 1'?
and try to do step by step. like try to make with only one...
those are not even methods yet....
getSsTax is still integer, not method
if getSsTax is a method then.... it should be like
you used 'getFedTax', 'getSsTax', 'getHealthFee', 'getInsurance', and 'getNetPay' for display() but
you actually never used those and even didn't initialize values for them.
and just wondering,...
doesn't work what??
if you want the program exits when any key is pressed then...
when keyPressed system exits, right?
i tried this and worked...
if i didn't understand then... please comment again.
Change this method
public void keyPressed(KeyEvent e)
{
if (e.getModifiers() == KeyEvent.KEY_PRESSED)
System.exit(0);
}
can you show the main method?
kinda wanna see...
cuz your questions might be your assignment i can't show you exact code but anyway
here are some tips!
first, if you wanna compare values in the grades array then you need to store some values....