Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.Color;
- public class Test {
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- Tacka t1 = new Tacka (0,0,"Origin");
- Tacka t2 = new Tacka(-3,4,"A1");
- t1.stampa(true);
- /* t2.x=-3;
- t2.y=4;
- */ t2.setIme("plj");
- t2.stampa(true);
- System.out.println(t1.dist(t2));
- ObojenaTacka t3= new ObojenaTacka(1, 2, "B1", Color.BLUE);
- t3.stampa(true);
- System.out.println(t3);
- //System.out.println(t3.toString());
- Tacka3D t4= new Tacka3D(3, 4, 5, "C1");
- Tacka3D t5= new Tacka3D(0, 0, 5, "C2");
- System.out.println(t4.dist(t5));
- }
- }
Add Comment
Please, Sign In to add comment