对看大坨的代码有用【Eclipse类图插件】 (2017年10月更新)

Relo是一个帮助开发人员研究大型代码库的好工具,它能够一步步的跟踪你所展开的代码包,并快速生成类似UML的类图。

1.代码分析用的:http://steeven.iteye.com/blog/370738 介绍的也就是relo啦。

2.插件下载:http://d.download.csdn.net/down/997934/sbfivwsll

3.安装方法:http://wenku.baidu.com/view/1459593f5727a5e9856a6110.html

本人刚毕业,公司j2EE的框架设计了一层又一层。叫我情何以堪?

---------------------------------------------------------------------------------------------------

2017年10月了,开发使用的eclipse早已经升级到Luna4.4版本,老的relo早已经不维护更新了,已经不让在Luna4.4中直接使用了

解决办法:参考:http://blog.csdn.net/garfield2005/article/details/51770104 新版本eclipse不支持旧版本的eclipse插件(Classpath Helper)

 

重启会提示relo 需要connect to project,点击确定就ok了。

使用:window->show view ->other->relo->relo view 打开relo 视图,让后就可以把相关的类拖拽到该视图就可以了

 

 

 

 

 

 

 

 

 

 

在Java中,大峰(通常指的是对象创建、内存分配和垃圾回收的大规模操作)是指处理大量学生信息时可能会遇到性能瓶颈的情况。为了计算学生信息类(StudentInfo),我们可能会设计一个 Student 类,包含属性如姓名(name)、学号(studentID)和成绩(score)等,并提供必要的方法(比如getters和setters)。 下面是一个简单的示例: ```java public class StudentInfo { private String name; private int studentID; private double score; // 构造函数 public StudentInfo(String name, int studentID, double score) { this.name = name; this.studentID = studentID; this.score = score; } // getters and setters public String getName() { return name; } public void setName(String name) { this.name = name; } public int getStudentID() { return studentID; } public void setStudentID(int studentID) { this.studentID = studentID; } public double getScore() { return score; } public void setScore(double score) { this.score = score; } // 计算平均分的方法,假设这里的大峰是指频繁的学生实例创建 public double calculateAverageGrade() { // 假设有一个集合存放所有学生的分数 List<Double> scores = ...; if (!scores.isEmpty()) { return scores.stream().mapToDouble(Double::doubleValue).average().orElse(0); } else { return 0; // 如果没有数据,返回默认值 } } } // 使用场景: List<StudentInfo> students = new ArrayList<>(); // 添加大量学生实例... double averageScore = students.stream() .map(StudentInfo::getScore) .collect(Collectors.averagingDouble()); ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值