noa格式转java_用IDEA查看反编译 - osc_1loi8uc4的个人空间 - OSCHINA - 中文开源技术交流社区...
目錄
一?找到java編譯后的class文件
二?查看編譯后的結果
發現是亂碼
三?將字節碼文件拷貝到IDEA中
四?打開這個class文件
下面這個結果就是IDEA反編譯的結果
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
public class Employee {
String name;
int age;
String designation;
double salary;
public Employee(String name, int age, String designation, double salary) {
this.name = name;
this.age = age;
this.designation = designation;
this.salary = salary;
}
public Employee() {
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return this.age;
}
public void setAge(int age) {
this.age = age;
}
public String getDesignation() {
return this.designation;
}
public void setDesignation(String designation) {
this.designation = designation;
}
public double getSalary() {
return this.salary;
}
public void setSalary(double salary) {
this.salary = salary;
}
public void printEmployee() {
System.out.println("Name:" + this.name);
System.out.println("Age:" + this.age);
System.out.println("Designation:" + this.designation);
System.out.println("Salary:" + this.salary);
}
public String toString() {
return "Employee{name='" + this.name + '\'' + ", age=" + this.age + ", designation='" + this.designation + '\'' + ", salary=" + this.salary + '}';
}
}
總結
以上是生活随笔為你收集整理的noa格式转java_用IDEA查看反编译 - osc_1loi8uc4的个人空间 - OSCHINA - 中文开源技术交流社区...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 为什么酱香型白酒好?
- 下一篇: 美食怎么拍 让你的美食照片更加诱人的拍摄