📄 text.java
字号:
/*
* Text.java
*
* Created on 2007年10月17日, 上午10:27
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
//package mypkg;
/**
*
* @author duerbin
*/
public class Text
{
public static void main(String[] args)
{
ResearchExpense example=new ResearchExpense();
System.out.println(example.getDate()+example.getDescription());//默认
ResearchExpense example1=new ResearchExpense("2008/08/08","北京",2008.0,23.0);
ResearchExpense example2=new ResearchExpense("2007/01/16","henan",1000,10);
System.out.println(example1.toString());
System.out.println(example2.toString());
example1.setCost(2000);
double a=example1.getCost();
System.out.println(a);
double b=example2.getTax();
System.out.println(b);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -