锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久av一区二区三区亚洲,一区二区三区|亚洲午夜,99国产精品一区http://www.aygfsteel.com/ninglee/zh-cnWed, 18 Jun 2025 19:21:53 GMTWed, 18 Jun 2025 19:21:53 GMT60Design Pattern Note(1) -- Iterator Patternhttp://www.aygfsteel.com/ninglee/archive/2006/06/13/52594.html鏉庡畞鏉庡畞Tue, 13 Jun 2006 15:18:00 GMThttp://www.aygfsteel.com/ninglee/archive/2006/06/13/52594.htmlhttp://www.aygfsteel.com/ninglee/comments/52594.htmlhttp://www.aygfsteel.com/ninglee/archive/2006/06/13/52594.html#Feedback0http://www.aygfsteel.com/ninglee/comments/commentRss/52594.htmlhttp://www.aygfsteel.com/ninglee/services/trackbacks/52594.html闃呰鍏ㄦ枃

鏉庡畞 2006-06-13 23:18 鍙戣〃璇勮
]]>
sum-up of the weekend(code demo)(end)http://www.aygfsteel.com/ninglee/archive/2006/06/05/50516.html鏉庡畞鏉庡畞Mon, 05 Jun 2006 07:58:00 GMThttp://www.aygfsteel.com/ninglee/archive/2006/06/05/50516.htmlhttp://www.aygfsteel.com/ninglee/comments/50516.htmlhttp://www.aygfsteel.com/ninglee/archive/2006/06/05/50516.html#Feedback0http://www.aygfsteel.com/ninglee/comments/commentRss/50516.htmlhttp://www.aygfsteel.com/ninglee/services/trackbacks/50516.html Continue with my JAVA test series.

This is the last one of the test series. It also about the regular expressions.

聽1 public class 聽testreplaceall
聽2 {
聽3 聽聽聽聽 public static void 聽main(String聽args[])
聽4 聽聽聽聽 {
聽5 聽聽聽聽聽聽聽聽String聽s聽 = " aaaaa= " ;
聽6 聽聽聽聽聽聽聽聽s = 聽s.replace( " = " , "" );
聽7 聽聽聽聽聽聽聽聽System.out.println( "s 聽is聽 "+s );
聽8 聽聽聽聽聽聽聽聽s = " aaaa. " ;
聽9 聽聽聽聽聽聽聽聽s = 聽s.replaceAll( " \\. " , "" );
10 聽聽聽聽聽聽聽聽System.out.println( "s 聽is聽 "+s );
11 聽聽聽聽聽聽聽聽s = " aaaa. " ;
12 聽聽聽聽聽聽聽聽s = 聽s.replaceAll( " . " , "" );
13 聽聽聽聽聽聽聽聽System.out.println( "s 聽is聽 "+s );
14 聽聽聽聽}

15 }

16 聽聽聽聽聽聽聽聽

The . stand for all letter, and the Escape character is \\



鏉庡畞 2006-06-05 15:58 鍙戣〃璇勮
]]>
sum-up of the weekend(code demo)(cont.)http://www.aygfsteel.com/ninglee/archive/2006/06/05/50510.html鏉庡畞鏉庡畞Mon, 05 Jun 2006 07:42:00 GMThttp://www.aygfsteel.com/ninglee/archive/2006/06/05/50510.htmlhttp://www.aygfsteel.com/ninglee/comments/50510.htmlhttp://www.aygfsteel.com/ninglee/archive/2006/06/05/50510.html#Feedback0http://www.aygfsteel.com/ninglee/comments/commentRss/50510.htmlhttp://www.aygfsteel.com/ninglee/services/trackbacks/50510.html Today I learned how to use javadoc Chinese Edition in Eclipse, hapy J

Continue with my JAVA test series.

聽1 import 聽java.util.regex.Pattern;
聽2
聽3 public class 聽testmatch
聽4 {
聽5 聽聽聽聽 public static void 聽main(String聽args[])
聽6 聽聽聽聽 {
聽7 聽聽聽聽聽聽聽聽 boolean 聽valid聽 = false ;
聽8 聽聽聽聽聽聽聽聽 // String聽s聽=聽
聽9 聽聽聽聽聽聽聽聽valid聽 = 聽Pattern.matches( " hoho.* " , " hoho123 " );
10 聽聽聽聽聽聽聽聽System.out.println(valid);
11 聽聽聽聽聽聽聽聽valid聽 = 聽Pattern.matches( " hoho.+ " , " hoho " );
12 聽聽聽聽聽聽聽聽System.out.println(valid);
13 聽聽聽聽}

14 }
This is a test of regular expression, I answered in www.javatx.cn ,post here :)

鏉庡畞 2006-06-05 15:42 鍙戣〃璇勮
]]>
sum-up of the weekend(code demo) (cont.)http://www.aygfsteel.com/ninglee/archive/2006/06/03/50186.html鏉庡畞鏉庡畞Sat, 03 Jun 2006 15:39:00 GMThttp://www.aygfsteel.com/ninglee/archive/2006/06/03/50186.htmlhttp://www.aygfsteel.com/ninglee/comments/50186.htmlhttp://www.aygfsteel.com/ninglee/archive/2006/06/03/50186.html#Feedback0http://www.aygfsteel.com/ninglee/comments/commentRss/50186.htmlhttp://www.aygfsteel.com/ninglee/services/trackbacks/50186.htmlJ
聽聽聽
聽1publicclass聽peority
聽2{
聽3聽聽聽聽publicstaticvoid聽main(String聽args[])
聽4聽聽聽聽{
聽5聽聽聽聽聽聽聽聽String聽s1聽="abcdefg:10";
聽6聽聽聽聽聽聽聽聽String聽s2聽="abcdefg:"+聽s1.length();
聽7聽聽聽聽聽聽聽聽System.out.println(s1.equals(s2));
聽8聽聽聽聽聽聽聽聽System.out.println(s1==s2);
聽9聽聽聽聽聽聽聽聽System.out.println("s1==s2"+s1==s2);
10聽聽聽聽}

11}

12聽聽聽聽聽聽聽聽
13
if you don't understand this, you can use the javap tool, maybe cause another post J



鏉庡畞 2006-06-03 23:39 鍙戣〃璇勮
]]>
sum-up of the weekend(code demo)http://www.aygfsteel.com/ninglee/archive/2006/06/03/50179.html鏉庡畞鏉庡畞Sat, 03 Jun 2006 14:33:00 GMThttp://www.aygfsteel.com/ninglee/archive/2006/06/03/50179.htmlhttp://www.aygfsteel.com/ninglee/comments/50179.htmlhttp://www.aygfsteel.com/ninglee/archive/2006/06/03/50179.html#Feedback0http://www.aygfsteel.com/ninglee/comments/commentRss/50179.htmlhttp://www.aygfsteel.com/ninglee/services/trackbacks/50179.html A weekend again, I just send an e-mail to the red-flag company. It鈥檚 just a wish, I think.

Record some code sum-up on this week.

1銆?span style="FONT: 7pt 'Times New Roman'">聽 SpitTest --- learned from www.javatx.cn Welcome to this website, I master the J2SE section J

聽1 public class 聽SpitTest聽 {
聽2
聽3 /**
聽4 聽*聽 @param 聽args
聽5 */

聽6 聽聽聽聽 public static void 聽main(String[]聽args)聽 {
聽7
聽8 聽聽聽聽聽聽聽聽String聽info聽 = 聽聽 " elementX1,elementY1,elementZ1 "
聽9 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 + 聽聽 " \\r\\n "
10 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 + 聽聽 " elementX2,elementY2,elementZ2 "
11 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 + 聽聽聽聽 " \\r\\n " ;
12 聽聽聽聽聽聽聽聽聽聽info聽 = 聽info.replace( " \\r\\n " ,聽 " , " );
13 聽聽聽聽聽聽聽聽String聽str[]聽 = 聽info.split( " , " );
14 聽聽聽聽聽聽聽聽 for 聽( int 聽i聽 = 0 ;聽i聽 < 聽str.length;聽i ++ )聽 {
15 聽聽聽聽聽聽聽聽聽聽聽聽System.out.println(str[i]);
16 聽聽聽聽聽聽聽聽}

17 聽聽聽聽}

18 }

I think it鈥檚 a very good idea to solve the problem, if I do it, I may use the split twice.

聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽(to be continuted)


鏉庡畞 2006-06-03 22:33 鍙戣〃璇勮
]]>
The Directory Constructor of JSP development using Eclipsehttp://www.aygfsteel.com/ninglee/archive/2006/06/01/49498.html鏉庡畞鏉庡畞Thu, 01 Jun 2006 03:26:00 GMThttp://www.aygfsteel.com/ninglee/archive/2006/06/01/49498.htmlhttp://www.aygfsteel.com/ninglee/comments/49498.htmlhttp://www.aygfsteel.com/ninglee/archive/2006/06/01/49498.html#Feedback0http://www.aygfsteel.com/ninglee/comments/commentRss/49498.htmlhttp://www.aygfsteel.com/ninglee/services/trackbacks/49498.html

聽By: NingLee聽聽 ninglee@mail.csdn.net

聽聽聽聽聽聽聽 Keyword: directory structure


There are many articles that introduce how to configure the development environment, so I don鈥檛 mention it. But in my own experience, I meet the other question, it鈥檚 the directory construct of the MVC.

M-Model 聽聽In this, it refers to the JavaBeans.

V-View聽聽聽 In this, it refers to JSP files

C-Control聽聽 In this, it refers to Servlet.

In eclipse with the WTP plug-in or myeclipse(recommended) , you can new a web project, and then new a JSP, and new a servlet if you need, but for the Javabean, you should new a class, and in the following windows select a new package, such as myBean to store the JavaBean.

Now the directory structure is like this:


---|WEB-INF |---web.xml
聽聽聽
|聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 |---lib

聽聽聽 |聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽|---classes|---myServlet.class (this is the servlet)

聽聽聽聽|聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽|---myBean---myBean.class(this is the JavaBean)

聽聽聽 |JSPs

OK, Good Luck J
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 June 1st, 2006



鏉庡畞 2006-06-01 11:26 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 绿春县| 民权县| 武功县| 大厂| 正阳县| 马鞍山市| 巴中市| 泗洪县| 京山县| 中江县| 澎湖县| 周至县| 陵水| 屏东市| 闽清县| 晋城| 视频| 黔西县| 上栗县| 丰镇市| 徐水县| 永昌县| 广州市| 济南市| 大洼县| 东兴市| 德清县| 华蓥市| 虹口区| 通江县| 巴南区| 子长县| 永吉县| 乐平市| 遂宁市| 雅安市| 兴海县| 尉犁县| 永年县| 文安县| 邯郸市|