摘要: <%! declarating;[declaration];.. %> declaration为声明的变量,方法的名称和内容 ①声明以<%! 开头以%> 结尾 ②变量声明必须以";"结尾 ③规则和java规则相同 ④<% @page %>可直接使用这个page指令中被包含进来的变量和方法,不用对他们 阅读全文
posted @ 2020-03-23 14:37 mxl-1 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 注释:html注释: <!-- 这是注释> 注释 <--> <!-- 注释 --> 发布网页时不会被看到,但是在源文件中可见 jsp 注释: <%-- 这一行是注释--%> 源文件可见 java注释 <%/* 注释内容 */%> <%// 注释内容 %> 网页不会看见,源文件也看不见 阅读全文
posted @ 2020-03-23 13:55 mxl-1 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 1 package cn.lyh; 2 3 public class L { 4 5 public static void main(String[] args) { 6 int []arr = new int[30]; 7 arr[0]=1; 8 arr[1]=1; 9 for(int i=2;ia... 阅读全文
posted @ 2017-12-18 14:37 mxl-1 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1 abstract class A{ 2 private String name; 3 public A(String name) { 4 this.name = name; 5 } 6 public String getName() { 7 return this.name; 8 } ... 阅读全文
posted @ 2017-12-18 14:36 mxl-1 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1 public class Y { 2 public static void main(String[] args) { 3 // TODO Auto-generated method stub 4 new Y().fun(); 5 6 } 7 8 private void ... 阅读全文
posted @ 2017-12-18 14:27 mxl-1 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1 public class L1106 { 2 3 public static void main(String[] args) { 4 // TODO Auto-generated method stub 5 TestDemo circle1 = new TestDemo(); 6 double are... 阅读全文
posted @ 2017-12-18 14:26 mxl-1 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1 package cn.lyhh; 2 class Person{ 3 private String name; 4 private int age; 5 static String city = "A城"; 6 public Person(String name,int age) { 7 this.name = n... 阅读全文
posted @ 2017-12-18 14:25 mxl-1 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1 package cn.zrjh; 2 3 public class L { 4 5 public int id; 6 public String name; 7 public int age; 8 public String city; 9 public Str... 阅读全文
posted @ 2017-12-18 14:24 mxl-1 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 1 //程序员:马相露 2 package cn.lyh; 3 import com.rupeng.game.GameCore; 4 5 public class L implements Runnable { 6 7 public static void main(String[] args) { 8 GameCore... 阅读全文
posted @ 2017-12-18 14:23 mxl-1 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1 //程序员:马相露 2 题目3.7 3 import java.util.Scanner; 4 public class L { 5 6 @SuppressWarnings("resource") 7 public static void main(String[] args) { 8 ... 阅读全文
posted @ 2017-12-18 14:21 mxl-1 阅读(140) 评论(0) 推荐(0) 编辑