Search:

Type: Posts; User: Junky

Page 1 of 20 1 2 3 4

Search: Search took 0.24 seconds.

  1. Replies
    2
    Views
    82

    Re: largest object in an array

    Define largest!

    Is "anaconda" larger than "bee"?
  2. Replies
    3
    Views
    103

    [SOLVED] Re: GUI Java Help Please!

    The error message states it cannot find the class ButtonEvent. It is not part of the Java API, is it a class you have written yourself? If so where is it?

    Also, your button1Listener (etc) classes...
  3. Replies
    4
    Views
    88

    Re: Java ScriptEngine?

    When I tried the very first hit was a link to the Oracle docs. Probably a good place to start.
  4. Replies
    4
    Views
    88

    Re: Java ScriptEngine?

    What happened when you typed "java scriptengine tutorial" into google?
  5. Re: File reading from a specific point on a line

    You could even use lastIndexOf and substring.
  6. Thread: Nodes

    by Junky
    Replies
    2
    Views
    111

    Re: Nodes

    What constructors does the Node class have?
  7. Replies
    1
    Views
    108

    Re: Help with Beginner JAVA method!

    Neither do we. Can you provide more details such as copy and paste the exact error message (if you get one) or describe the behaviour and what it should do instead.
  8. Thread: Need Help!

    by Junky
    Replies
    2
    Views
    73

    Re: Need Help!

    Do you have a question? You can tell when there is a question because it has that funny symbol at the end of the sentence.
  9. Thread: selectionsort

    by Junky
    Replies
    1
    Views
    114

    Re: selectionsort

    Valid indicies for an array are 0 to length - 1. For an array that has a length of 5 the last index is 4 which makes 5 out of bounds.
  10. Replies
    6
    Views
    111

    Re: How to make craps game?

    That is not a specific question. An example of what I mean is if someone was having trouble with a loop not executing the correct number of times then they could post their code and ask "Why is my...
  11. Replies
    6
    Views
    111

    Re: How to make craps game?

    Most people understand how craps works. That is not what Norm was asking. Your first post was basically "here's my code, fix it for me". That is not how it works. What you need to do is ask a...
  12. Replies
    1
    Views
    107

    Re: Java Question Program?

    If you want your program to produce a specific answer to a specific question then you could use a Map containing Strings. Use the question as a Key and the answer as the Value. When user enters a...
  13. Replies
    6
    Views
    121

    Re: Andorid Memory Matching game help

    Please help with Android.

    Duplicate post.
  14. Replies
    5
    Views
    122

    Re: Getting a random Yes Or No

    The Random class can also generate random booleans which better map to yes/no.
  15. Re: How to import information from a file, and use it to calculate and display serval things?

    public abstract class BankAccount

    You cannot instantiate an abstract class.
  16. [SOLVED] Re: I'm trying to get the most frequent character out of a bunch

    If you need to count the occurrences of chars in a String then what you need is an int array with a length of 26. Then iterate over the String one char at a time. If the char is an 'a' increment the...
  17. Thread: Methods

    by Junky
    Replies
    1
    Views
    114

    Re: Methods

    You already know how to do this. I imagine you have used Strings before and called many of its methods. In the code above you have a Random object and a Scanner object and manage to call methods of...
  18. Re: How to find where the biggest number is in an array

    Post updated code.
  19. Thread: Class of arrays

    by Junky
    Replies
    8
    Views
    105

    [SOLVED] Re: Class of arrays

    "it doesn't work" provides us with zero information. Do you get errors? Then copy and paste the full and exact error messages here and indicate were in your code they are occurring.
  20. Replies
    15
    Views
    151

    Re: Simple problem, please help!?!

    So instead of following Norm's advice on how to diagnose your problem you just want some magic to fix it.
  21. [SOLVED] Re: One string Text message into array of strings(letters)

    If args cannot be resolved then you did not call your parameter in the main method args. Please post your full code and use code tags
  22. Re: Help with methods and constructors please!

    What have you tried?
    Do you have any errors?

    As it is your post is basically "here's my assignment, write it for me"

    If you have a specific question then people are more than willing to help.
  23. Re: Trying to get an "if" statement to work in a "for loop".

    Why do you need an if statement? You only need 2 loops. Outer loop controls the number of rows. For each row print x number of spaces then have the inner loop print the numbers.

    --- Update ---
    ...
  24. Re: help with when the for loop is met and i want to run the while loop again

    Instead of having the x==3 situation as a separate if statement, try making it another condition of your if statement as an else if.
  25. Replies
    4
    Views
    105

    [SOLVED] Re: Problem with return and 2D array

    No. All you need to do is assign the returned array to a variable.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4