Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- Vektor x = new Vektor(1);
- Vektor xy = new Vektor(2,3);
- Vektor xyz = new Vektor(4,5,6);
- x.show();
- xy.show();
- xyz.show();
- [4,5,6]
- [4,5,6]
- [4,5,6]
- public Vektor(int x) {
- this.x = x;
- alpha[0] = x;
- }
- public int[] show() {
- System.out.println(Arrays.toString(alpha));
- return alpha;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement