ladyJava's Profile User Rating: -----

Reputation: 3 Apprentice
Group:
Members
Active Posts:
21 (0.03 per day)
Joined:
24-January 13
Profile Views:
986
Last Active:
User is offline Apr 16 2013 10:59 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   ladyJava has not set their status

Posts I've Made

  1. In Topic: Beginners Problem.(Cannot be resolved

    Posted 9 Apr 2013

    View PostGregBrannon, on 09 April 2013 - 11:35 AM, said:

    The two files you posted are in different packages, complicating things a bit. Is there a requirement to do it that way? If not, put them both in the same package and try again.



    These were my instructions:

    To Do
    1. Create an Eclipse workspace named c:\temp\YourNamePair.
    2. Create project pair.
    3. Create package edu.westga.pair.model in the src folder.
    4. Create class Pair in the new package.
    5. Create package edu.westga.pair.controller in the src folder.
    6. Create class PairTester in the new controller package. Donít create a main method.
    7. Create class PairDriver in the controller package. It should have a main method.
    8. Implement Pair and PairTester as described in exercise P4.4 in the chapter 4
    programming exercises of the text.
  2. In Topic: Beginners Problem.(Cannot be resolved

    Posted 9 Apr 2013

    View Postmodi123_1, on 09 April 2013 - 09:57 AM, said:

    Create an instance of the object "Pair" in your "PairTester". Feed it the values.. get the output.

    Just like how you created instances of the object "int" ( public int someNumber;) you would do the same, but instead of 'int' you would use 'Pair'.


    It now says that Pair is not a type.

     package edu.westga.pair.controller;
    
    public class PairTester {
    	
    	public int someNumber;
    	public int someNumber2;
    	public Pair sum;
    

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me

Friends

Comments

ladyJava has no profile comments yet. Why not say hello?