1. 新建project new project --> java project -->input the name of the project and choose the jre -- press the button"New Java Package"--> input the package's name -->under the package, press the "New Java Class" button 下面这是一个小…
1 package ttt; public class Testttt { public static void main() { Person p =new Person(); p.name="lucy"; p.age=12; p.sex=1; p.study(); int a = p.addAge(2); } } package ttt; public class Person { public String name; public int age; public int sex…
在 Eclips 开发时,新建了一个 Dynamic Web Project,在运行jsp文件时tomcat报错: org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 14 in the jsp file: /default/register/checker.jsp DBUtil cannot be resolved to a type 这是我的 jsp 文件…