Search:

Type: Posts; User: raphytaffy

Search: Search took 0.22 seconds.

  1. Replies
    0
    Views
    789

    Node swap (move up)

    Hi all, I am trying to properly code a moveUp() method that will move an item above another in a queue. This method is inside my QueueList class which extends LinkedList. What I am trying to have it...
  2. Replies
    3
    Views
    1,372

    Re: JUnit test for ER

    Hi copeg, thanks for the suggestion. Unfortunately we have not covered Collections and implementation yet in my class, so I'm looking for a simple search algorithm that I can implement in my code.
  3. Replies
    3
    Views
    1,372

    JUnit test for ER

    Hi all, I am coding a project that is supposed to resemble an ER. There's a Patient class that stores name, id, and priority. In my Triage class, I have an array list of patients are initialized when...
  4. Replies
    2
    Views
    31,226

    [SOLVED] Re: JUnit initialization error

    Works great! Thanks!
  5. Replies
    2
    Views
    31,226

    [SOLVED] JUnit initialization error

    Hi all, I'm trying a simple JUnit test with Eclipse but I'm getting an initialization error (attached screenshot). Just looking for some help as to how to clear this error. Here are my classes:
    ...
  6. Replies
    6
    Views
    2,204

    Re: Student TreeMap

    Both are in my Student class:


    public class Student
    {
    public Student( String aFirstName, String aLastName, int aStudentId )
    {
    firstName = aFirstName;
    lastName = aLastName;
    studentId...
  7. Replies
    6
    Views
    2,204

    Re: Student TreeMap

    I only need to retrieve the Student object when the user requests to Remove or Modify one of the Students and that is done through their Integer ID. Adding the equals() method that I coded above did...
  8. Replies
    6
    Views
    2,204

    Re: Student TreeMap

    Thanks, so I should implement equals() and hashCode() into my GradeBook class?


    public boolean equals( Object otherObject )
    {
    if( otherObject == null ) return false;
    if( getClass() !=...
  9. Replies
    6
    Views
    2,204

    Student TreeMap

    Hi all, my assignment is to use TreeMap to sort Student objects. Students have a first name, a last name, and a unique integer ID. The sample program looks like so:

    Sample Program

    A)dd R)emove...
  10. Replies
    4
    Views
    4,784

    [SOLVED] Re: Recursive Sentence Finder

    Hi, thanks for the schooling. I did realize that the algorithm was a bit off and revised my code, I just didn't post the revised code:


    import java.util.ArrayList;

    public class Sentence
    {...
  11. Replies
    4
    Views
    4,784

    [SOLVED] Re: Recursive Sentence Finder

    Thank you! It's been bothering me for a while now. Would you mind showing me how you would tidy up my code? I'd like to get into the right habits ahead of time so that I can continue practicing good...
  12. Replies
    4
    Views
    4,784

    [SOLVED] Recursive Sentence Finder

    Hi all, I have a programming assignment that is described as follows:


    Use recursion to implement a method boolean find(String t) that tests whether a string is contained in a sentence:
    Sentence...
Results 1 to 12 of 12