Search:

Type: Posts; User: Sfrius

Search: Search took 0.23 seconds.

  1. Replies
    6
    Views
    240

    [SOLVED] Re: Singly Linked List - Sort Method

    I wigged and I wagged....here's the finished code, so when someone asks How do I compare a generic node with a generic object you can refer them to this post.


    public class ListNode<T> implements...
  2. Replies
    6
    Views
    240

    [SOLVED] Re: Singly Linked List - Sort Method

    Hey I just saw you replied.
    I received no input/help and I gave up.
    The original code I started with is posted.
    The method inside that code called insertSort() is the method I'm trying to add.
    I...
  3. Replies
    6
    Views
    240

    [SOLVED] Re: Singly Linked List - Sort Method

    Managed to find this post from 18 months ago. http://www.javaprogrammingforums.com/whats-wrong-my-code/24615-sort-merge-two-linked-list.html
    I'm not really sure this person had their questions...
  4. Replies
    6
    Views
    240

    [SOLVED] Re: Singly Linked List - Sort Method

    I think I was pretty precise.

    And I pretty much said all this the first time but heres another go at it.

    In the second example I even showed you how I tried to implement a comparable interface...
  5. Replies
    6
    Views
    240

    [SOLVED] Singly Linked List - Sort Method

    I really hate linkedlists. I've been stairing at this code for 3 days now and I can't seem to create a insertSort method. It has an insertFromBack and insertFromFront.
    I'm trying to make a method...
  6. Replies
    2
    Views
    99

    [SOLVED] Re: Listener trouble

    Norm what the heck! :P That worked perfectly. Funny rule.....
  7. Replies
    2
    Views
    99

    [SOLVED] Listener trouble

    I'm just wondering what is wrong with this? All it needs to do is calculate farenheight from celcius upon pressing the enter key. It's displaying the entered temp but it's not displaying the...
  8. Thread: Array problem

    by Sfrius
    Replies
    15
    Views
    51

    Re: Array problem

    Finally, I see the error of my logic, thanks for talking me through that one...:P
    each total[][]++ has to have the first and second bracket manually. why I put i in there..I don't know.

    ---...
  9. Thread: Array problem

    by Sfrius
    Replies
    15
    Views
    51

    Re: Array problem

    Norm does it have anything to do with the way it's declared?
    I mean if it was a three dimensional it would be double[][][] array = {{{0,5}, {0, 6}}, etc};
    You would access the variables in...
  10. Thread: Array problem

    by Sfrius
    Replies
    15
    Views
    51

    Re: Array problem

    It doesn't need to find it. Both for loops start at position 0 and end at array.length. Temp and the if statements determine what counter variable needs to be added too. I don't see anything wrong...
  11. Thread: Array problem

    by Sfrius
    Replies
    15
    Views
    51

    Re: Array problem

    Ok, I might have explained my problem very poorly. I have been working with java for 2 years, I don't usually change the values in an array. For this instance, I am....But it won't work....Arrays in...
  12. Thread: Array problem

    by Sfrius
    Replies
    15
    Views
    51

    Re: Array problem

    The sales array holds 9 different sales of 9 employees.

    The total array holds {counter, forAmount}
    array at[0][select 0 or 1] 0 for counter 1 for amount.

    so if i say total[0][0] It's...
  13. Thread: Array problem

    by Sfrius
    Replies
    15
    Views
    51

    Re: Array problem

    No, the program compiles if you would like to view the error. The current output is.
    $200.0-299.0 1
    $300.0-399.0 1
    $400.0-499.0 1
    $500.0-599.0 1
    $600.0-699.0 1...
  14. Thread: Array problem

    by Sfrius
    Replies
    15
    Views
    51

    Re: Array counting problem2

    The code compiles with no errors. It's not tabulating correctly.
    All I want to do is figure out how much each employee made, tabulate the count and then display the count. I'm not sure what's going...
  15. Thread: Array problem

    by Sfrius
    Replies
    15
    Views
    51

    Array problem

    I realize this is an old post but my question is exactly the same. I read through this post and "Just think of mathematics" is not enough help for me.
    All I want to do is figure out how much each...
  16. Replies
    18
    Views
    50

    Re: Scanner and scannobject.close()

    Thanks norm. Lol Greg, have you ever read a word you didn't know the meaning to and it drives you insane until you figure out what it means? :P
    There were so many newbie questions about scanner it...
  17. Replies
    18
    Views
    50

    Re: Scanner and scannobject.close()

    public static Scanner input = new Scanner(System.in);

    then in whatever class you want Driver.input.nextInt(); <--or nextDouble Float Line whatever

    Less code, no confusion, 100% of garbage...
  18. Replies
    18
    Views
    50

    Re: Scanner and scannobject.close()

    Yea sorry I just wrote it and the forum doesn't act like a compiler. I can't install anything on the computer I'm using.
  19. Replies
    18
    Views
    50

    Re: Scanner and scannobject.close()

    I have a lot of user input, and I want to divide and conquer. I want to seperate input and use void methods to take in user data and use return methods in the class to do some calculations with this...
  20. Replies
    18
    Views
    50

    Re: Scanner and scannobject.close()

    Ok ok...give me 5 minutes....

    --- Update ---



    import java.util.Scanner;
    class javaForum{
    static final int SENTINEL = -1;
    public static void main(String[] args){
  21. Replies
    18
    Views
    50

    Re: Scanner and scannobject.close()

    There is no code to write. It's just a question about scanner method close.

    --- Update ---

    It's one of those things you either know or you don't.
    Like I said, I don't need luck, my programs...
  22. Replies
    18
    Views
    50

    Re: Scanner and scannobject.close()

    LOL???

    CLASS DRIVER
    MAIN
    SCANNER input INITIALIZED
    MENU - ENTER CHOICE
    REPITITIOUS MENU LOOP{ CHOICE != SENTINEL
    OPTION();
    OPTION2();
  23. Replies
    18
    Views
    50

    Scanner and scannobject.close()

    Ok, I have this question that involves the Scanner class. Basically, when you want to perform garbage collection and there is a scanner object. You type scannerobject.close(); in your final clause. ...
Results 1 to 23 of 23