package terminaltask;
public class Bank {
public static void main(String[] args)
{
// TODO Auto-generated method stub
Bank indian = new Bank();
int amount = indian.deposit(1000);
System.out.println(amount);
}
public int deposit (int amount)
{
return 1000-500;
}
out put -- 500
}
The above is the detailed content of Bank task. For more information, please follow other related articles on the PHP Chinese website!