Here you can find the source of GetMoneyAmount(int amount, int CheckAmount)
private static int GetMoneyAmount(int amount, int CheckAmount)
//package com.java2s; //License from project: Open Source License public class Main { private static int GetMoneyAmount(int amount, int CheckAmount) { if (amount >= CheckAmount) { int left = amount / CheckAmount; if (left > 0) { return left; }//from ww w . jav a 2 s . co m } return 0; } }