main.java

来自「关于汽车的购买系统,收费系统,汽车耗油系统,是早期和同学开发的JAVA程序」· Java 代码 · 共 44 行

JAVA
44
字号
/*
 * Main.java
 *
 * Created on 2007年4月9日, 下午5:12
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package work;

/**
 *
 * @author Administrator
 */

public class Main {
    
    /** Creates a new instance of Main */
    public Main() {
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
       ResearchExpense person1=new ResearchExpense();
       person1.setDate("1/1/1996");
       person1.setCost(1900000);
       person1.setDescription("Shoes");
       person1.setTax(60000);
       person1.isPaid(true);
      
         
       ResearchExpense person2=new ResearchExpense("4/18/2007","Computers",800000,1000);
       System.out.println(person1.toString());
       System.out.println(person2.toString());
       
    }
        
    }
    

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?