Java SE Static Inner
/*ÄÚ²¿ÀàʹÓÃʾÀý*/
package demo;
class Outer{
int outer_i=100;
static int outer_j=200;
final int outer_k=300;
void test(){
Inner in = new Inner();
in.display();
}
static class Inner{
void display(){
System.out.println("display: outer_j = "+/*outer_i*/outer_j);
// System.out.println("display: outer_k = "+outer_k); //´íÎóÓï¾ä£¬ÔÚ¾²Ì¬ÀàÖв»ÄÜʹÓ÷Ǿ²Ì¬±äÁ¿
}
}
}
class InnerClassDemo {
/**
* @param args
*/
public static void main(String[] args) {
Outer outer=new Outer();
outer.test();
}
}
/*Êä³ö½á¹û
display: outer_j = 200
*/
/*ÄÚ²¿ÀàʹÓÃ*/
package demo;
class Outer1{
private int size=10;
protected class Inner{
public void doStuff(){
System.out.println(++size);
}
}
}
public class TestInner {
public static void main(String[] args) {
Outer1 outer1=new Outer1();
Outer1.Inner i=outer1.new Inner();
i.doStuff();
}
}
Ïà¹ØÎĵµ£º
JDK 5.0 ÖÐÔö¼ÓµÄ·ºÐÍÀàÐÍ£¬ÊÇ Java ÓïÑÔÖÐÀàÐÍ°²È«µÄÒ»´ÎÖØÒª¸Ä½ø¡£µ«ÊÇ£¬¶ÔÓÚ³õ´ÎʹÓ÷ºÐÍÀàÐ͵ÄÓû§À´Ëµ£¬·ºÐ͵ÄijЩ·½Ãæ¿´ÆðÀ´¿ÉÄܲ»ÈÝÒ×Ã÷°×£¬ÉõÖÁ·Ç³£Ææ¹Ö¡£ÔÚ±¾ÔµēJava ÀíÂÛºÍʵ¼ù”ÖУ¬Brian Goetz ·ÖÎöÁËÊø¸¿µÚÒ»´ÎʹÓ÷ºÐ͵ÄÓû§µÄ³£¼ûÏÝÚå¡£Äú¿ÉÒÔͨ¹ýÌÖÂÛÂÛ̳Óë×÷ÕߺÍÆäËû¶ÁÕß·ÖÏíÄú¶Ô±¾ÎĵĿ´·¨¡ ......
public static void getSysProp(){
Properties props = System.getProperties();
Set<Entry<Object,Object>> res = props.entrySet();
Iterator it = res.iterator();
while (it.hasNext())
{
Map.Entry e = (Map.Entry)it.next();
......
// ¹ýÂËÌØÊâ×Ö·û
public static String StringFilter(String str) throws PatternSyntaxException {
// Ö»ÔÊÐí×ÖĸºÍÊý×Ö
// String regEx = "[^a-zA-Z0-9]";
// Çå³ýµôËùÓÐÌØÊâ×Ö·û
S ......
JAVAÓëSAPÊý¾Ý½»»¥µÄ·½Ê½×ܽá
RFC·½Ê½£ºJava³ÌÐòÖ±½Óͨ¹ýRFC·ÃÎÊSAPµÄ¶ÔÏ󣨻ò³Æº¯Êý£¬¿ÉÄܽз¨²»¶Ô£©
SAP
ÌṩÁËBAPI(Business Application Programming
Interface)£¬BAPIÊÇSAPϵͳ¶ÔÍâÌṩµÄһϵÁнӿÚ,Ö÷ÒªÊÇʹµÚÈý·½³ÌÐòͨ¹ýÕâЩ½Ó¿ÚÀ´Ê¹ÓÃSAP,´Ó¶ø·½±ã¿Í»§¶¨ÖÆijЩ³Ì
Ðò.VB,Java,C,C++µÈ¶¼¿ÉÒÔͨ¹ýBAPIÀ´·ÃÎÊSAP ......
1.ʲôÊǶÔÏó£¬Ê²Ã´ÊÇÃæÏò¶ÔÏó£¬Ê²Ã´ÊÇÀࣿ
ÏÖʵÊÀ½çÖÐÈκÎʵÌ嶼¿ÉÒÔ¿´×÷ÊǶÔÏó¡£ËûÃÇÓÐÁ½ÖÖÌØÕ÷£ºËûÃǶ¼ÓµÓÐ״̬ÓëÐÐΪ¡£Èí¼þÖеĶÔÏóÓÐ×Ô¼ºµÄÊôÐÔºÍÄܹ»Ö´ÐеIJÙ×÷¡£
ËùνÃæÏò¶ÔÏó¾ÍÊÇ»ùÓÚ¶ÔÏó¸ÅÄÒÔ¶ÔÏóΪÖÐÐÄ£¬ÒÔÀàºÍ¼Ì³ÐΪ¹¹Ôì»úÖÆ£¬À´ÈÏʶ¡¢Àí½â¡¢¿Ì»¿Í¹ÛÊÀ½çºÍÉè¼Æ¡¢¹¹½¨ÏàÓ¦µÄÈí¼þϵͳ¡£
Àà¾ÍÊǶÔÒ»¸öÊÂÎ ......