Thank you Kevin and Christopher. I might actually try both methods and see which gives the best results.
I already asked this question to my instructor, I know at this point I will get full...
Type: Posts; User: Hisma
Thank you Kevin and Christopher. I might actually try both methods and see which gives the best results.
I already asked this question to my instructor, I know at this point I will get full...
Sorry, I should have been more specific.
Here is the example I am trying to mimic -
http://i.imgur.com/Njl4WwQ.png
Notice how the JTextFields on the WEST are sized to where the content...
Here is a ss of what I am talking about -
http://i.imgur.com/nJEohJL.png
I want that particular JPanel to fill it's empty space.
I am using a layout manager to place 4 JPanels on a JFrame. ...
interesting. I have no experience with streamtokenizer yet. I will do some reading up on it and see if it helps me out.
thanks!
--- Update ---
I did more research and it looks like reading...
Say I am reading in a text file that has String codes that represents rows of seats on an aircraft.
Here is what a line from the file would look like -
1A XXX XXX XXX 1D 1G XXX XXX XXX...
yeah, it seems folks just want people to do their work for them. I can see why the trend is not to spoonfeed or bend over backwards for people.
post the code you have now.
Hi Guys
I am a 31 yr old engineer who is just starting to get deep into java. I am going back to school and taking online programming classes at a state uni. I still consider myself a beginner,...
Right, but the instructions ask for a 2D array.
"2. Store each line’s data as a row in a 2-D array. Calculate and display the letter grade due each student based on the following rules:"
It would really help to comment your code as well. It would not only help others to understand what you're trying to do with your code, it will help yourself to understand your objective.
I see...
you also defined name as an int at the beginning. It should be a String name, not int name.
The user is prompted to enter a name, but you're telling the scanner to expect an int.
Should be name = input.next() or input.nexLine()
It'd be much easier to understand if you used the code tags here... but I can help.
GregBrannon gave a simple way of testing if an integer is even.
If an integer is not even, then it must...
In python, variables do not need to be declared as their datatype is inferred.
In java, variables must be declared with a type. You can assign sum as an int or a double.
You'd also need to...
Why not try having a go of it yourself?
This is a very easy problem. First you'd need to construct both arrays and assign values to the indices. Then you'd need to prompt the user for the word...
primitive data types are the basis for which all objects are derived. So, it's "primitive", because it's the first, the beginning.
Thanks Greg. You actually answered my question perfectly. Here is the code I was running.
This is a JUnit test class I created in eclipse -
package edu.ncsu.csc216.cash_register;
...
Hello all
I am taking a programming class that is having me test programs using JUnit. I am actually going along quite fine, but I have a question. Do the methods get called in some sort of...