Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package geometria;
- import java.util.Set;
- import java.util.TreeSet;
- public class Rysuenk {
- public static void main(String[] args) {
- Set<Figura> figury = new TreeSet<>();
- figury.add(new Kolo(3.0, 1.0, 4.0));
- figury.add(new Kwadrat(4, 2, 2));
- figury.add(new Prostokat(2.0, 4.0, 3.0, 3.0));
- for (Figura x: figury
- ) {
- System.out.println(figury);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement