Get in the Java System Properties

Java语言以其面向对象、跨平台、可移植性好、安全性高等优点,受到众多编程人员的青睐,越来越多的人将其作为应用软件开发语言的首选。在 Java应用程序运行时,特别是需要在跨平台工作环境下运行时,需要确定操作系统类型、用户JDK版本和用户工作目录等随工作平台变化的信息,来保证程序正确运行。一般情况下,可以利用JDK提供的系统属性类(Properties)中的方法,快速地获取工作环境信息。另外,程序开发人员还可以定义与应用程序相关的系统属性文件,在用户程序执行过程中动态地加载程序员定义的属性文件来控制程序运行。本文通过对系统属性类的分析,结合实际例子介绍如何定义系统属性文件,并讨论安全策略文...
HJY | 2008-10-05 19:58 | 阅读 8625 次 | 评论 0 条

Expostulation By HJY

How to learn Java1、多动手学编程语言不仅仅是从理论上的学习,更重要的是要利用这门语言为你的思想服务。理解这门语言是首要的,但是要达到心领神会、融会贯通就必须勤动手,多花时间去编写一些例子。计算机科学是注重实践的学科,成功的软件开发人员无不经过大量的上机锻炼,只有理论和实践相结合才能真正掌握知识和技能。2、多动脑对于Java语言的学习,不仅仅是对语言本身的学习,更重要的是面向对象思想的建立过程,如果想把Java学习提升到一个更高的层次,建议从一开始就用面向对象的思维方式去面对你所接触的每件事。3、多查API文档Java 提供了大量的类以满足网络化、多线程、面向对象的需要。...
HJY | 2008-10-05 19:23 | 阅读 1838 次 | 评论 0 条

The preparation of cross-platform Java program note

编写跨平台Java程序注意事项使用Java语言编写应用程序最大的优点在于“一次编译,处处运行”,然而这并不是说所有的Java程序都具有跨平台的特性,事实上,相当一部分的Java 程序是不能在别的操作系统上正确运行的,那么如何才能编写一个真正的跨平台的Java程序呢?下面是在编写跨平台的Java程序是需要注意的一些事情:1.编写Java跨平台应用程序时,你可以选择JDK1.0,1.1,1.2或支持它们的GUI开发工具如:Jbuilder,Visual Age for Java 等等,但是必须注意你的Java程序只能使用Java核心API包,如果要使用第三方的类库包,则该类库包也要由Java...
HJY | 2008-10-05 19:09 | 阅读 4465 次 | 评论 0 条

Java Socket

一篇介绍 Java Socket 编程的经典文章事实上网络编程简单的理解就是两台计算机相互通讯数据而已。对于程序员而言,去掌握一种编程接口并使用一种编程模型相对就会显得简单的多了。Java SDK提供一些相对简单的Api来完成这些工作,Socket就是其中之一。对于Java而言。这些Api存在与Java.net这个包里面。因此只要导入这个包就可以准备网络编程了。网络编程的基本模型就是客户机到服务器模型。简单的说就是两个进程之间相互通讯,然后其中一个必须提供一个固定的位置,而另一个则只需要知道这个固定的位置,并去建立两者之间的联系。然后完成数据的通讯就可以了。这里提供固定位置的通常称为服务...
HJY | 2008-10-05 17:33 | 阅读 3829 次 | 评论 0 条

Eliminate Inherit And Oriented Interface Programming(Mind)

消除继承和面向接口编程继承是面向对象中很重要的概念。假如考虑到Java语言特性,继承分为两种:接口继承和实现继承。这只是技术层面的问题,即便C 中不存在接口的概念,但它的虚基类实际上也相当于接口。对于OO的初学者来说,他们很希望自己的程序中出现大量的继承,因为这样看起来很OO。但滥用继承会带来很多问题,尽管有时候我们又不得不使用继承解决问题。相比于接口继承,实现继承的问题要更多,它会带来更多的耦合问题。但接口继承也是有问题的,这是继承本身的问题。实现继承的很多问题出于其自身实现上,因此这里重点讨论实现继承的问题。举个例子(这个例子实在太老套了)。我要实现一个Stack类,我想当然地选择 ...
HJY | 2008-10-05 17:21 | 阅读 1939 次 | 评论 0 条

I18N

1:国际化配置:<html:link action="localAction.do?country=CN&amp;language=zh&amp;page=/main.do"> <bean:message key="language.chinese"/></html:link><html:link action="localAction.do?country=US&amp;language=en&amp;page=/main.do"> <bean:message key="language.english"/></html:link>2:StrutsConfig<!-- 动态...
J2EE | 2008-10-05 16:43 | 阅读 2240 次 | 评论 0 条

Tiles Framework

概况 传 统的GUI工具包,如Java AWT和Java Swing,都提供了一些功能强大的布局管理器,它们指定各个视图组件在窗口中的分布位置。布局管理器有助于创建复合式的复杂界面,一个复合式界面由一些 简单的基本界面组成。利用布局管理器来创建GUI界面有以下优点: ·可重用性:基本界面可以被重用,组合成各种不同的复合式界面 ·可扩展性:可以方便的扩展基本界面,从而创建更复杂的界面 ·可维护性: 每个基本界面之间相互独立,当复合式界面中的局部区域发生变化,不会影响其它区域 不幸的是,JSP技术本身并没有直接提供布局或布局管理器。为了简化Web...
Framework | 2008-10-05 14:15 | 阅读 2261 次 | 评论 0 条

EL

v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} Normal 0 7.8 磅 0 2 false false false M...
JSP | 2008-10-04 11:14 | 阅读 5227 次 | 评论 0 条

Java exe File Detail(01)

javac:Java编译器,将Java源代码换成字节代java:Java解释器,直接从类文件执行Java应用程序代码appletviewer(小程序浏览器):一种执行HTML文件上的Java小程序类的Java浏览器javadoc:根据Java源代码及其说明语句生成的HTML文档jdb:Java调试器,可以逐行地执行程序、设置断点和检查变量javah:产生可以调用Java过程的C过程,或建立能被Java程序调用的C过程的头文件Javap:Java反汇编器,显示编译类文件中的可访问功能和数据,同时显示字节代码含义jar:多用途的存档及压缩工具,是个java应用程序,可将多个文件合并为单个JA...
J2EE | 2008-10-04 10:32 | 阅读 4501 次 | 评论 0 条

My Mind Casting(0.1)

Normal 0 7.8 磅 0 2 false false false MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:普通表格; mso-tstyle-rowband-size:0; mso...
MVC | 2008-10-03 16:54 | 阅读 2822 次 | 评论 0 条

In The Closet

In The Closet written and composed by michael jackson and teddy riley. produced by teddy riley and michael jackson. [princess stephanie of monaco) there's something i have to say to you if you promise you'll understand i cannot contain myself when in your presence i'm so humble t...

Why You Wanna Trip On Me

Why You Wanna Trip On Me Why You Wanna Trip On MeWritten and Composed by Teddy Riley and Bernard Bell.They say I'm differentThey don't understandBut there's a bigger problemThat's much more in demandYou got world hungerNot enough to eatSo there's really no timeTo be trippin' on meYou got sc...

Scream

Scream SCREAM Michael Jackson Tired of injustice Tired of the schemes Kinda disgusted So what does it mean Kicking me down I got to get up As jacked as it sounds The whole system sucks Peek in the shadow Come into the light You tell me I'm wrong Then you bette...

Give in to Me

Give in to Me I just can't stop loving you Michael Jackson Each Time the wind blows I hear your voice so I call your name... Whispers at morning Our love is dawning Heaven's glad you came You know how I feel This thing can't go wrong I'm so proud to say I love you ...

You Are Not Alone

You Are Not Alone Written and Composed by R. Kelly. Produced by R. Kelly and Michael Jackson. Another day has gone I'm still all alone How could this be You're not here with me You never said goodbye Someone tell me why Did you have to go And leave my world so cold ...

Whatever Happens

Whatever Happens He gives another smile, tries to understand her side To show that he cares She's consumed with everything that's been goin' on She says Whatever happens, don't let go of my hand Everything will be alright, he assures her But she doesn't hear a word that he s...

They Don't Care About Us

They Don't Care About Us Written and Composed by Michael Jackson MJJ Productions Inc. 制作:Jeany Skinhead, Deadhead, Everybody, Gone bad Situation, Aggravation, Everybody, Allegation In the suite, On the news Everybody Bang bang Shock dead, Everybody's Gone mad All I wanna s...

Who is it

Who is it Who Is It Michael Jackson I gave her money I gave her time I gave her everything Inside one heart could find I gave her passion My very soul I gave her promises And secrets so untold And she promised me forever And a day we'd live as one We made ...

Earth Song

earth song What about sunrise What about rain What about all the things That you said we were to gain.. . What about killing fields Is there a time What about all the things That you said was yours and mine... Did you ever stop to notice All the blood we've shed befor...

Dirty Diana

Dirty Diana Dirty Diana Michael Jackson, 1987 Lyrics by Billy ZHANG Oh No . . . You'll Never Make Me Stay, So Take Your Weight Off Of Me I Know Your Every Move, So Won’t You Just Let Me Be I’ve Been Here Times Before, But I Was Too Blind To See That You Seduce Every Man,...
浏览581633次