Find Jobs
Hire Freelancers

Assistance with modifying a Test program

$10-30 USD

Abgeschlossen
Veröffentlicht vor mehr als 7 Jahren

$10-30 USD

Bezahlt bei Lieferung
The "Point" class has two fields (x and y), one constructor, and four methods(getx(), getY(), equals(), and toString()). I also have a separate "TestPoint" class that does have main() method after the Point class. I need to modify the "TEST POINT" program below so that it defines q to have the same coordinates as p. Then, check that [login to view URL](p) is true and that q == p is false, thereby verifying that two distinct objects can be separate but equal. public class Point { private int x, y; // the point's coordinates public Point(int x, int y){ this.x = x; this.y = y; } public boolean equals(Point p){ return (x == p.x && y == p.y); } public int getX(){ return x; } public int getY(){ return y; } public String toString(){ return new String("(" + x + ", " + y + ")"); } } public class TestPoint { public static void main(String[] args) { Point p = new Point(2, -3); [login to view URL]("p: " + p); [login to view URL]("[login to view URL](): " + [login to view URL]()); [login to view URL]("[login to view URL](): " + [login to view URL]()); Point q = new Point(7,4); [login to view URL]("q: " + q); [login to view URL]("[login to view URL](p): " + [login to view URL](p)); [login to view URL]("[login to view URL](q): " + [login to view URL](q)); } }
Projekt-ID: 11720663

Über das Projekt

3 Vorschläge
Remote Projekt
Aktiv vor 8 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
Vergeben an:
Avatar des Nutzers
We are team of excellent developers. We have 2 year experience related to your project field. We can do your project and solve your all problems according to your requirements. We have read your description for projects and we understand what you want so we are confident that we can do it easily in mention time. We assure you that you will be completely satisfy with our work. And after delivering your project if you feel some issue in understanding the projects then we will teach you free until you understand. If you have any question then feel free to ask. We are here for you. Thank you Demon Developer Team
$30 USD in 1 Tag
4,9 (21 Bewertungen)
4,3
4,3
3 Freelancer bieten im Durchschnitt $27 USD für diesen Auftrag
Avatar des Nutzers
Hello, I am expert in java/c/c++ and i can deliver your task in the least time and least payments. The code will be well commented and well formatted for better understanding. I believe in long term relations so first check your work then release the payments. Pm me for further details. Thank You!
$25 USD in 1 Tag
5,0 (40 Bewertungen)
4,5
4,5
Avatar des Nutzers
The project makes sense, I should be able to turn it around in very short order. Question for you - have you heard of the tool "junit" for unit testing? It's designed for tasks like these where you need to execute tests on some code. I'd be happy to let you know more (contact me for details, and, to award your project ;) )
$25 USD in 1 Tag
5,0 (1 Bewertung)
0,4
0,4

Über den Kunden

Flagge von UNITED STATES
United States
5,0
5
Zahlungsmethode verifiziert
Mitglied seit Dez. 2, 2015

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.