Guest User

Untitled

a guest
Apr 27th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public static void Three_Of_A_Kind(int dice_value[])
  2. {
  3.  
  4. for(int i = 0; i < dice_value.length; i++)
  5. {
  6. int x = 0;
  7. int z = 0;
  8.  
  9. for(int value:dice_value)
  10. {
  11. x++;
  12. if ( x == value)
  13. z++;
  14. if(z == 3)
  15. allow_three = 1; //static, giving permission to use this method
  16. }
  17.  
  18.  
  19.  
  20. }
  21.  
  22.  
  23.  
  24. }
Add Comment
Please, Sign In to add comment