Search:

Type: Posts; User: KucerakJM

Page 1 of 5 1 2 3 4

Search: Search took 0.31 seconds.

  1. Replies
    3
    Views
    164

    Re: Java Math help please

    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.
  2. Thread: case

    by KucerakJM
    Replies
    64
    Views
    129

    Re: case

    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.
  3. Replies
    6
    Views
    214

    Re: Drawing and Scrolling

    EDIT:
    Sorry about that, wasn't paying attention.
  4. Replies
    3
    Views
    82

    Re: setSize() not working

    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,...
  5. Replies
    10
    Views
    156

    Re: Help with paper rock scissors game

    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...
  6. Thread: case

    by KucerakJM
    Replies
    64
    Views
    129

    Re: case

    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...
  7. Thread: case

    by KucerakJM
    Replies
    64
    Views
    129

    Re: case

    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.
  8. Re: Why can't I get my variable to display?

    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...
  9. Replies
    2
    Views
    39

    Re: New member here!

    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...
  10. Replies
    7
    Views
    354

    Re: Lock keyboard and mouse inputs

    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.
  11. Re: Taking info from a text file, sorting it, save into class arrays and reprinting into new txt file

    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...
  12. Re: Taking info from a text file, sorting it, save into class arrays and reprinting into new txt file

    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...
  13. Replies
    7
    Views
    354

    Re: Lock keyboard and mouse inputs

    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.
  14. Re: Taking info from a text file, sorting it, save into class arrays and reprinting into new txt file

    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...
  15. Replies
    7
    Views
    354

    Re: Lock keyboard and mouse inputs

    What do you mean by "lock". Do you mean preventing the use of the keyboard and/or mouse?
  16. Replies
    4
    Views
    194

    Re: Banking System Problem HELP!

    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...
  17. Replies
    1
    Views
    181

    Re: Need help with Java.awt.Color

    Check out setForeground()
  18. Thread: loop

    by KucerakJM
    Replies
    6
    Views
    266

    Re: loop

    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...
  19. Thread: loop

    by KucerakJM
    Replies
    6
    Views
    266

    Re: loop

    ^---copeg got it before me
    redundant so I removed it.
  20. Replies
    21
    Views
    390

    Re: Help with serial read-in

    I am betting line 174 is


    readBuffer[readBufferPosition++] = b;

    Please consider my suggestion of printing the value (or perhaps logging it) of b.
  21. Re: help with actionlistener for my calculator; button are created within a for loop for number 1 to9

    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>...
  22. Re: help with actionlistener for my calculator; button are created within a for loop for number 1 to9

    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...
  23. Replies
    21
    Views
    390

    Re: Help with serial read-in

    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...
  24. Replies
    4
    Views
    194

    Re: Banking System Problem HELP!

    Your issue is here:


    if(passTxtRegistration.getPassword().length == 0 && userTxtReg.getText().trim().length() == 0)
    {
    ...
  25. Re: Fall-thru Switch

    nvm
Results 1 to 25 of 118
Page 1 of 5 1 2 3 4