old projects

This commit is contained in:
2022-10-12 19:59:56 +02:00
parent 3415a1383b
commit 199325ac33
75 changed files with 5172 additions and 0 deletions

34
linenSicht/Shape.java Normal file
View File

@@ -0,0 +1,34 @@
import javax.swing.*;
import java.awt.*;
import java.util.*;
public class Shape {
ArrayList<Integer> x = new ArrayList<Integer>();
ArrayList<Integer> y = new ArrayList<Integer>();
int len = 0;
public Shape() {
}
public void addPoint(int posX, int posY) {
x.add(posX);
y.add(posY);
len++;
}
public int getX(int index) {
return x.get(index);
}
public int getY(int index) {
return y.get(index);
}
public int getLength() {
return len;
}
}