Type: Posts; User: Chris.Brown.SPE

Page 1 of 8 1 2 3 4

Search: Search took 0.19 seconds.

  1. Re: question from the Core Java II book

    Hash table is an idea of a data structure. HashTable and HashMap as they are known in java are both hash tables. You can pass in an initial capacity and load factor into both of them. The only...
  2. Re: question from the Core Java II book

    The point of a hash table is to make looking for objects faster because they are put into buckets. I think i have a decent analogy that may help.

    Imagine you have a huge bin of...
  3. Replies

    Re: quick question

    Complete shenanigans! I've been a software engineer for 6 years and have never coded via command line. And furthermore, learning an IDE like Eclipse is crazy easy, there are many tutorials on the...
  4. Re: How do you call a method from the same non-application class?

    Are these static methods or instance methods? Is your array global or being passed from one method to the other? Hard to determine what you are doing without seeing the code or an error.
  5. Re: Beginner Coding problem in a class taught by professor with limited English comprehension

    If this is correct then your end sorted result is going to be an array with every value 1 to 10,000. Creating actual random numbers would take a long long time for this program to run. Perhaps this...
  6. [SOLVED] Re: Help - reading from a text file into an ArrayList

    If you have the option that a member may not play a sport then you may want to add a check to make sure the data contains a 4th element before referencing it. This would be a good way to have your...
  7. Replies

    Re: quick question

    Just ran your code in Eclipse and it worked perfect. What online compiler are you using and what kind of errors are you getting?
  8. Re: Using Euclid's algorithm in a Fraction Class

    I'm not sure where you're going with this. It seems like you have a good start on it in your gcd method. You mention putting it in the setter methods or the constructor, what are you really trying to...
  9. Thread: HII

    by Chris.Brown.SPE

    Re: HII

    Seems to me like you would just need to randomly generate your question values then you would have to code your solution so it knows what the answer is.

    For your example, get a random number...
  10. Re: How to pass the ArrayList form servelet to jsp?

    There's a difference between request attributes and session attributes. Notice when you save your variable you are doing request.setAttribute() but when you get it back you call...
  11. Re: How to pass the ArrayList form servelet to jsp?

    Duplicate Post
  12. Re: How to assign an array cell value into a switch statement

    Your problem is tha tyou cant switch on an array itself. You mention that the value of ven[4] is a single char and that is what you want to switch on. You have a couple options, take a look at them...
  13. Re: Spring 3.2 -- 404 error calling a controller method from a link in a JSP

    Are you able to make the part of the method you need into a static method? I'm pretty sure you can call static methods all you want from a JSP, but for instance methods you would need an instance of...
  14. Re: "Illegal Start of Expression" ?? CANT SOLVE

    Congrats you call them all methods. A function returns something, a procedure does not (aka a method that returns void). Some people just cant let go of the C++ and ADA terminology. Please forgive me...
  15. Replies

    Re: Trouble adding objects to JComboBox

    You've shown a fairly high level of competence already so i'll give it to you. But i would hope that you take the time to understand what i've done and learn from it.

    private void...
  16. Re: "Illegal Start of Expression" ?? CANT SOLVE

    Your milligrams function is inside of your main function, move it outside of the function. You can still call it from inside the main function, you just cant define it inside the main function.
  17. Replies

    Re: PLEASE HELP! (hashtable in Java)

    The problem is on line tablesize7.add((Hashable)start); "start" is an int so it cannot be cast to "Hashable".

    --- Update ---

    It seems to me like you're using your interface incorrectly. Your...
  18. Replies

    Re: Lost In The World Of Java

    Duplicate Post
  19. Replies

    Re: 0-10Factorial table

    A factorial is simply the number multiplied by all numbers previous to it.

    8! = 8*7*6*5*4*3*2*1 or 1*2*3*4*5*6*7*8

    Looks like a simple for loop to me. Google "iterative factorial algorithm" if...
  20. Re: How to call printDate method to output the dates?

    I believe i answered this in your thread Same issue, you're calling...
  21. Re: Rational program calling up from different file but in same package

    To call a static method you have to use the classes name before it.


    If that doesnt fix your problem, could you repost the class your main method is in? It is hard to test...
  22. Replies

    Re: Tic-Tac-Toe Invalid Moves

    When you create your board which is a char[][], each element is empty which causes problems. To initialize the array, write a function that goes through each element and sets it to your EMPTY value....
  23. Replies

    Re: 0-10Factorial table

    Ok, so you're trying to write an iterative (non-recursive) factorial program. If you have the iterative factorial algorithm, which part is causing you problems? Or do you not have an iterative...
  24. Replies

    Re: java job resume questions

    Look at any book with "cookbook" in the title. These have a collections of common problems encountered in the language the book refers to and how to fix them.

    Are you looking for specific...
  25. Replies

    Re: Counting Loop and Outputting

    Duplicate post
Results 1 to 25 of 192
Page 1 of 8 1 2 3 4