Advertisement
ivana_andreevska

Random da se generira vo konstruktor

Aug 9th, 2022
778
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.13 KB | None | 0 0
  1.    this.ID=new Random().nextLong();
  2.         while(this.ID < 0)
  3.         {
  4.             this.ID=new Random().nextLong();
  5.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement