Hi rv498,
If you take a look at the Pythagorean theorem you will be solving for C, and I believe you will come to a conclusion about using math.sqrt as well.
Type: Posts; User: KucerakJM
Hi rv498,
If you take a look at the Pythagorean theorem you will be solving for C, and I believe you will come to a conclusion about using math.sqrt as well.
The main method is the entry point for a program in Java and if it isn't there it will get mad at you. Create the main method and then use the writeoutput method inside of it.
EDIT:
Sorry about that, wasn't paying attention.
Hi 812d,
I will explain this as I understand it, which should not be taken as gospel or technically correct but should help you out. The area where you use setSize, and setVisible for that matter,...
Hi sjud9227,
I suggest you go here: The Java™ Tutorials and focus on the section "Trails Covering the Basics". There are syntax errors all over the place including incorrect variable...
The closest error message I can get, using Eclipse, is "Void methods cannot return a value" but so long as you didn't change public String bottle(int bottle) to public void bottle(int bottle) I am...
I think posting the exact error message may shed some light on what the root cause is. So, if you haven't figured out this problem please post said message.
Hi geovanniluna,
I suggest that you do a quick Google search for "Cannot make a static reference to the non-static method" and perhaps look more into what the static keyword means and how/when it...
Welcome to the forum, I suggest starting here: The Java™ Tutorials
That contains a lot of basic information, some of which you probably know already, but also more advanced/specialized topics. Best...
I have actually worked on similar applications myself, just not in java, and I am fairly certain that you will need to go into the JNI/JNA realm to achieve what you are looking for.
Ok so like the sudo code suggest loop through the input, text file in this case, then parse out the email, check if it contains a subdomain (or not) and place it in the respective array. Once you...
This may seem like a dumb question but I want to be certain. By "sort" are you referring to adding the email to either the Email/UniveristyEmail array or actually sorting those arrays, perhaps by...
I see, while this may or may not be possible I won't be able to help with this one due to the possible malicious usage. Sorry.
I'm going to venture a guess that both Email and UniversityEmail have a String variable containing the email. If so then it is a matter of iterating through each element in the UniversityEmail array...
What do you mean by "lock". Do you mean preventing the use of the keyboard and/or mouse?
Honestly, I don't have much experience with RandomAccessFile but after a quick glance I don't see why you can't use it to take care of the username and password. Only issue I can think of is that the...
Check out setForeground()
So there are a few issues I can see:
1. The counter variable for your for loop (score) is the same variable you use to get input, rendering the counter useless.
2. The variable score has a scope...
^---copeg got it before me
redundant so I removed it.
I am betting line 174 is
readBuffer[readBufferPosition++] = b;
Please consider my suggestion of printing the value (or perhaps logging it) of b.
I won't just give you code and Norm certainly won't, take some time (more than a few minutes) to look for information on getActionCommand and getSource. To get you started google "<insert method>...
Look into getActionCommand():
ActionEvent (Java Platform SE 7 )
That has a little description for it. Your code doesn't quite conform to what is usually seen but in terms of being able to...
It is tiny and barely readable that is why Norm would like you to paste the text.
On another note this:
readBuffer[readBufferPosition++] = b;
seems suspect to me since that would mean...
Your issue is here:
if(passTxtRegistration.getPassword().length == 0 && userTxtReg.getText().trim().length() == 0)
{
...