package demo;
import java.io.InputStream;
public class Account {
public static void main(String[] args) {
// TODO 自动生成的方法存根
}
class Xinxi
{
private
String name;
int year;
int month;
int day;
int money;
int yuan;
public void In(int m,int n)
{
}
public void Out(int j)
{
}
}
public void In(int m,int n)
{
Xinxi zz = null;
System.out.println("存款");
m=0;
System.out.println("输入存入金额");
//输入
if(zz.yuan==0||n>zz.yuan)
System.out.println("不可取款!!!!") ;
System.out.println("存款");
System.out.println("余额为"+m);
zz.money=zz.yuan+m;
}
public void Out(int j)
{
Xinxi zz=null;
System.out.println("取款");
System.out.println("输入取款金额");
//输入
zz.money=zz.yuan-j;
System.out.println("余额"+zz.money);
}
}
时间: 2024-10-27 02:29:22