Skip to content

Commit 078ada0

Browse files
committed
[*] Update Javadocs
1 parent cb1fd52 commit 078ada0

File tree

7 files changed

+267
-255
lines changed

7 files changed

+267
-255
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* Copyright 2019 George Tzikas <[email protected]>
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,27 +13,27 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package bicycles;
17-
18-
/**
19-
*
20-
* @author tzikas97
21-
*/
22-
public class TestBicycles {
23-
24-
/**
25-
*
26-
* @param args Input arguments
27-
*/
28-
public static void main(String[] args) {
29-
30-
Bicycles b1 = new Bicycles(20, 3);
31-
b1.printDescription();
32-
33-
System.out.println("----------");
34-
35-
MountainBikes b2 = new MountainBikes(40, 5, 2);
36-
b2.printDescription();
37-
38-
}
39-
}
16+
package bicycles;
17+
18+
/**
19+
*
20+
* @author tzikas97
21+
*/
22+
public class TestBicycles {
23+
24+
/**
25+
*
26+
* @param args The command line arguments
27+
*/
28+
public static void main(String[] args) {
29+
30+
Bicycles b1 = new Bicycles(20, 3);
31+
b1.printDescription();
32+
33+
System.out.println("----------");
34+
35+
MountainBikes b2 = new MountainBikes(40, 5, 2);
36+
b2.printDescription();
37+
38+
}
39+
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* Copyright 2019 George Tzikas <[email protected]>
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,34 +13,34 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import geometricobject.Circle;
17-
import java.util.ArrayList;
18-
import java.util.List;
19-
20-
/**
21-
*
22-
* @author tzikas97
23-
*/
24-
public class TestCircleObject {
25-
26-
/**
27-
*
28-
* @param args Input arguments
29-
*/
30-
public static void main(String[] args) {
31-
32-
List<Circle> objects = new ArrayList<>();
33-
34-
objects.add(new Circle());
35-
objects.add(new Circle(2.2));
36-
objects.add(new Circle(5, "red", true));
37-
38-
for (int i = 0; i < objects.size(); i++) {
39-
System.out.println("\nObj " + (i + 1) + "\n----------");
40-
System.out.println(objects.get(i).toString());
41-
System.out.println("area: " + objects.get(i).getArea());
42-
System.out.println("perimeter: " + objects.get(i).getPerimeter());
43-
System.out.println("diameter: " + objects.get(i).getDiameter());
44-
}
45-
}
46-
}
16+
import geometricobject.Circle;
17+
import java.util.ArrayList;
18+
import java.util.List;
19+
20+
/**
21+
*
22+
* @author tzikas97
23+
*/
24+
public class TestCircleObject {
25+
26+
/**
27+
*
28+
* @param args The command line arguments
29+
*/
30+
public static void main(String[] args) {
31+
32+
List<Circle> objects = new ArrayList<>();
33+
34+
objects.add(new Circle());
35+
objects.add(new Circle(2.2));
36+
objects.add(new Circle(5, "red", true));
37+
38+
for (int i = 0; i < objects.size(); i++) {
39+
System.out.println("\nObj " + (i + 1) + "\n----------");
40+
System.out.println(objects.get(i).toString());
41+
System.out.println("area: " + objects.get(i).getArea());
42+
System.out.println("perimeter: " + objects.get(i).getPerimeter());
43+
System.out.println("diameter: " + objects.get(i).getDiameter());
44+
}
45+
}
46+
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* Copyright 2019 George Tzikas <[email protected]>
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,50 +13,50 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import geometricobject.GeometricObject;
17-
import java.util.ArrayList;
18-
import java.util.List;
19-
20-
/**
21-
*
22-
* @author tzikas97
23-
*/
24-
public class TestGeometricObject extends GeometricObject {
25-
26-
/**
27-
*
28-
* Class GeometricObject is abstract & cannot be instantiated.
29-
* TestGeometricObject inherits the class GeometricObject, in order to be
30-
* able to test its methods.
31-
*/
32-
/**
33-
*
34-
* @param args Input arguments
35-
*/
36-
public static void main(String[] args) {
37-
38-
List<TestGeometricObject> objects = new ArrayList<>();
39-
40-
objects.add(new TestGeometricObject());
41-
42-
for (int i = 0; i < objects.size(); i++) {
43-
System.out.println("\nObj " + (i + 1) + "\n----------");
44-
System.out.println(objects.get(i).toString());
45-
}
46-
}
47-
48-
@Override
49-
public double getArea() {
50-
throw new UnsupportedOperationException("Not supported yet.");
51-
}
52-
53-
@Override
54-
public double getPerimeter() {
55-
throw new UnsupportedOperationException("Not supported yet.");
56-
}
57-
58-
@Override
59-
public void printObject() {
60-
throw new UnsupportedOperationException("Not supported yet.");
61-
}
62-
}
16+
import geometricobject.GeometricObject;
17+
import java.util.ArrayList;
18+
import java.util.List;
19+
20+
/**
21+
*
22+
* @author tzikas97
23+
*/
24+
public class TestGeometricObject extends GeometricObject {
25+
26+
/**
27+
*
28+
* Class GeometricObject is abstract & cannot be instantiated.
29+
* TestGeometricObject inherits the class GeometricObject, in order to be
30+
* able to test its methods.
31+
*/
32+
/**
33+
*
34+
* @param args The command line arguments
35+
*/
36+
public static void main(String[] args) {
37+
38+
List<TestGeometricObject> objects = new ArrayList<>();
39+
40+
objects.add(new TestGeometricObject());
41+
42+
for (int i = 0; i < objects.size(); i++) {
43+
System.out.println("\nObj " + (i + 1) + "\n----------");
44+
System.out.println(objects.get(i).toString());
45+
}
46+
}
47+
48+
@Override
49+
public double getArea() {
50+
throw new UnsupportedOperationException("Not supported yet.");
51+
}
52+
53+
@Override
54+
public double getPerimeter() {
55+
throw new UnsupportedOperationException("Not supported yet.");
56+
}
57+
58+
@Override
59+
public void printObject() {
60+
throw new UnsupportedOperationException("Not supported yet.");
61+
}
62+
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* Copyright 2019 George Tzikas <[email protected]>
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,33 +13,33 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import geometricobject.Rectangle;
17-
import java.util.ArrayList;
18-
import java.util.List;
19-
20-
/**
21-
*
22-
* @author tzikas97
23-
*/
24-
public class TestRectangleObject {
25-
26-
/**
27-
*
28-
* @param args Input arguments
29-
*/
30-
public static void main(String[] args) {
31-
32-
List<Rectangle> objects = new ArrayList<>();
33-
34-
objects.add(new Rectangle());
35-
objects.add(new Rectangle(6.3, 5.9));
36-
objects.add(new Rectangle(8, 20, "green", true));
37-
38-
for (int i = 0; i < objects.size(); i++) {
39-
System.out.println("\nObj " + (i + 1) + "\n----------");
40-
System.out.println(objects.get(i).toString());
41-
System.out.println("area: " + objects.get(i).getArea());
42-
System.out.println("perimeter: " + objects.get(i).getPerimeter());
43-
}
44-
}
45-
}
16+
import geometricobject.Rectangle;
17+
import java.util.ArrayList;
18+
import java.util.List;
19+
20+
/**
21+
*
22+
* @author tzikas97
23+
*/
24+
public class TestRectangleObject {
25+
26+
/**
27+
*
28+
* @param args The command line arguments
29+
*/
30+
public static void main(String[] args) {
31+
32+
List<Rectangle> objects = new ArrayList<>();
33+
34+
objects.add(new Rectangle());
35+
objects.add(new Rectangle(6.3, 5.9));
36+
objects.add(new Rectangle(8, 20, "green", true));
37+
38+
for (int i = 0; i < objects.size(); i++) {
39+
System.out.println("\nObj " + (i + 1) + "\n----------");
40+
System.out.println(objects.get(i).toString());
41+
System.out.println("area: " + objects.get(i).getArea());
42+
System.out.println("perimeter: " + objects.get(i).getPerimeter());
43+
}
44+
}
45+
}

0 commit comments

Comments
 (0)