No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
11 Posted Topics
Since you cannot use split and StringTokenizer, one way is to check one by one of each character from the string if there are any delimiter, put the words inside an array, and then reverse them.
[QUOTE=cecsFTL;1690683]Does anyone know how do i make the program pick a number between 100-999 instead of 0-999?[/QUOTE] 100 + random.nextInt(900)
You can also use JLabel as the button and then add MouseListener to it.
I guess your question is how to make it work? Well, here is a few problem with your code: blablabla...
I don't know if it affects much but at line 41 in your Student class should be assigned to HealthCare variable. I'll try to look for more error.
My suggestion: 1. Add ActionListener to textField. 2. When actionPerformed(), move the cursor to textArea using textArea.grabFocus(). 3. If you want to place the cursor at the end of the text of textArea, use select() method.
As the compiler stated, you must return a data of type double for your getAverage() method at line 46. If you do not want to return any value, just change to public static [B]void[/B] getAverage() but that does not meet the purpose of creating accessor method if it does not …
Just use if else statement. EDIT: Sorry, my bad. I thought you want an input that is less than 5(1 digit). Here is my suggestion: 1. Take the input as string. 2. Check the length of it. 3. If it is less than 5, convert it into integer, and then …
I've been knowing about this site long time ago, yet I didn't even registered, just become a silent reader. Now I decided to register just for fun, and hopefully I could learn a lots of things here and able to contribute something to the community.
The End.
leodash