Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. public static void main(String[] args) {
  2. Vektor x = new Vektor(1);
  3. Vektor xy = new Vektor(2,3);
  4. Vektor xyz = new Vektor(4,5,6);
  5. x.show();
  6. xy.show();
  7. xyz.show();
  8.  
  9. [4,5,6]
  10. [4,5,6]
  11. [4,5,6]
  12.  
  13. public Vektor(int x) {
  14. this.x = x;
  15. alpha[0] = x;
  16. }
  17. public int[] show() {
  18. System.out.println(Arrays.toString(alpha));
  19. return alpha;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement