• 大小: 11.99MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-21
  • 语言: Java
  • 标签: java  

资源简介

java代码 通过java的Swing进行GUI开发 采用树形目录对java文件进行组织 可以实行对java文件的增加、修改、删除以及运行 类似于简易版的eclipse

资源截图

代码片段和文件信息

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main_Excel {
//通过参考百度到的代码完成
    public static void main(String[] args) {
     try {
   ReadExcel excel = new ReadExcel();
     List list = new ArrayList();
     list = excel.readExcel(“source_Excel/student_info.xls“);
     System.out.println(“Current number of people:“);
     for(int i = 0 ; i < list.size() ; i++){
     System.out.println(list.get(i).Value());
     }
     List list1 = new ArrayList();
     int i = 0;
     Scanner sc = new Scanner(System.in);
     System.out.println(“Please enter the number of people to insert:“);
     int j = sc.nextInt();
     System.out.println(“Please enter - Student ID - Name - Age - Results:“);
     String[] str = new String [4];
     String str1 = null;
     while(i < j){
     sc = new Scanner(System.in);
     StudentBean student = new StudentBean();
     str1 = sc.nextLine();
     str = str1.split(“\\s+“);
         student.setNo(str[0].trim());
         student.setName(str[1].trim());
         student.setAge(str[2].trim());
         student.setScore(str[3].trim());
         list1.add(student);
     i++;
     }
     sc.close();
     WriteExcel writeExcel = new WriteExcel(list1);
     writeExcel.Insert();
     list = excel.readExcel(“source_Excel/student_info.xls“);
     System.out.println(“Insert the following table:“);
     for(i = 0 ; i < list.size() ; i++){
     System.out.println(list.get(i).Value());
     }
} catch (Exception e) {
e.printStackTrace();
}

    }
    
}


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-12-22 20:12  GUI_Design\
     文件         960  2017-12-19 19:05  GUI_Design\.classpath
     文件         386  2017-12-19 15:23  GUI_Design\.project
     目录           0  2017-12-22 20:12  GUI_Design\.settings\
     文件         598  2017-12-19 15:23  GUI_Design\.settings\org.eclipse.jdt.core.prefs
     目录           0  2017-12-27 16:56  GUI_Design\bin\
     目录           0  2017-12-27 16:56  GUI_Design\bin\cn\
     目录           0  2017-12-27 16:56  GUI_Design\bin\cn\gjbmxy\
     目录           0  2017-12-27 16:56  GUI_Design\bin\cn\gjbmxy\MainAction\
     文件        2358  2017-12-27 16:56  GUI_Design\bin\cn\gjbmxy\MainAction\Create_GridBagLayout.class
     文件        1136  2017-12-27 16:56  GUI_Design\bin\cn\gjbmxy\MainAction\DefaultMutableTreeNodeMy.class
     文件        1717  2017-12-27 16:56  GUI_Design\bin\cn\gjbmxy\MainAction\Js.class
     文件         878  2017-12-27 16:56  GUI_Design\bin\cn\gjbmxy\MainAction\MainAction.class
     文件        2971  2017-12-27 17:04  GUI_Design\bin\cn\gjbmxy\MainAction\Panel_Tree$1.class
     文件       11979  2017-12-27 17:04  GUI_Design\bin\cn\gjbmxy\MainAction\Panel_Tree.class
     目录           0  2017-12-22 20:12  GUI_Design\cn\
     目录           0  2017-12-22 20:12  GUI_Design\cn\gjbmxy\
     目录           0  2017-12-27 16:59  GUI_Design\cn\gjbmxy\FifteenthWeek\
     文件        1624  2017-12-26 21:34  GUI_Design\cn\gjbmxy\FifteenthWeek\Main_Excel.java
     文件        2083  2017-12-23 20:45  GUI_Design\cn\gjbmxy\FifteenthWeek\NewException.java
     文件        1079  2017-12-26 21:37  GUI_Design\cn\gjbmxy\FifteenthWeek\Product.java
     文件         104  2017-12-26 21:27  GUI_Design\cn\gjbmxy\FifteenthWeek\property.bat
     文件        3702  2017-12-26 21:38  GUI_Design\cn\gjbmxy\FifteenthWeek\ReadExcel.java
     文件        1092  2017-12-26 21:31  GUI_Design\cn\gjbmxy\FifteenthWeek\StudentBean.java
     文件        1953  2017-12-26 21:39  GUI_Design\cn\gjbmxy\FifteenthWeek\WriteExcel.java
     目录           0  2017-12-27 17:22  GUI_Design\cn\gjbmxy\FourteenthWeek\
     文件        1195  2017-12-26 21:40  GUI_Design\cn\gjbmxy\FourteenthWeek\Hello_Split.java
     文件         128  2017-12-27 17:22  GUI_Design\cn\gjbmxy\FourteenthWeek\property.bat
     文件        1559  2017-12-26 21:40  GUI_Design\cn\gjbmxy\FourteenthWeek\StringBufferAppend.java
     文件         665  2017-12-26 21:40  GUI_Design\cn\gjbmxy\FourteenthWeek\StringBufferConstructors.java
     文件        1628  2017-12-26 21:40  GUI_Design\cn\gjbmxy\FourteenthWeek\StringBufferInsert.java
............此处省略51个文件信息

评论

共有 条评论