wolfking800
wolfking800
28.02.2020 • 
Engineering

Public class Point { public float x; public float y; public float z; public Point(int inX, int inY, int inZ) { x = inX; y = inY; z = inZ; } } In the client code, ArrayList is created, and 3 points are added to it: import java.util.ArrayList; import java.util.Collections; public class Lab6Main { public static void main(String[] args) { ArrayList Points = new ArrayList(); Points.add(new Point(1, 2, 3)); Points.add(new Point(0, 0, 0)); Points.add(new Point(0, 34, 68)); //Collections.sort(Points); } } 1. Create 2 files – Point.java and Lab6Main.java for Point class and client code; copy the code. Compile and run the project.

Solved
Show answers

Ask an AI advisor a question