Search:

Type: Posts; User: foresboo

Search: Search took 0.10 seconds.

  1. Replies
    3
    Views
    1,068

    Re: JUnit AssertEquals

    That is my problem, my add method only takes in one parameter not two, would you suggest switching up my add and subtract method to taking it two parameters, so that I can make the assertEquals work?...
  2. Replies
    3
    Views
    1,068

    JUnit AssertEquals

    Hey,

    I am doing a Junit test case, but I keep having issues with AssertEquals ( object expected, object actual).
    I don't know how to reference the other actual object so that it can compare to...
  3. [SOLVED] Re: Please help me first time user, and need help with a method

    public void RemoveS()
    {
    //LOOK AT THE JAVA API TO LOOK AT BUNCH OF REMOVE METHODS for ArrayList
    System.out.print("please enter Student Number");
    int ssn = keybd.nextInt();
    for(Student...
  4. [SOLVED] Re: Please help me first time user, and need help with a method

    package student;
    /**
    *
    * @author Boo
    *this program gets each student info and set it, and print as a string.
    */

    public class Student
    {
    //fields
  5. [SOLVED] Re: Please help me first time user, and need help with a method

    I think I got it, not sure though could you please confirm if I am right or did I did wrong again?

    private static void AddS(String firstName, String lastName, int SNumber, String major, double...
  6. [SOLVED] Re: Please help me first time user, and need help with a method

    why is the int snumber = keybd.next(); giving me an error, suggested fix was "change type to String" but in student class constructor, it is suppose to be an int. and am I doing it right now? I have...
  7. [SOLVED] Re: Please help me first time user, and need help with a method

    should i ask each question individually and a scanner right after each? and once i have all the answers, how do i construct the student object, since my student constructor is in another class??...
  8. [SOLVED] Re: Please help me first time user, and need help with a method

    Under my student.java, scroll all the way down and you will see private static void AddS(), I am stuck there, I am suppose to prompt the user to add a student information such as firstName, lastName,...
  9. [SOLVED] Re: Please help me first time user, and need help with a method

    how do i do that? i see people's post can be scrolled up and down, but all i know is control +C then control +v

    --- Update ---



    package student;
    import java.util.ArrayList;
    import...
  10. [SOLVED] keyboard scanner to take users input and enter students information method

    I believe I have completed my student.java and I am not done with my StudentList.java, under AddS method in StudentList.java, i have created a scanner to take users input, prompting for user to enter...
  11. [SOLVED] Please help me first time user, and need help with a method

    Hi guys, thanks for stopping by to help, inside my StudetList.java, the method AddS(meaning addstudent), i was wondering how i can take a users input and setting it to first name, last name, student...
Results 1 to 11 of 11