When talking about public,private, and protected in C++, two words must pop up in your head:accessibility and visibility. Unfortunately, the two academic words are just created to confuse learners as […]

Let’s compile a simple java program in current directory(javac Test.java): //Test.java class Test { String a=”hello”; public static void main(String[]args) { Test b=new Test(); b.a=”world”; System.out.println(b.a); App app=new App(); app.fun(); […]

Button is an inline element. It can not be centered using the “margin:auto;” that is for block element. Even if you set “display:inline-block” for it, the “margin:auto;” still has no […]

I love php array because the array’s key can not only be number but also be string. $arr=array(“a”,”b”,”c”); $arr=[“a”,”b”,”c”]; $arr=array(“k1″=>”a”,”k2″=>”b”,”k3″=>”c”); $arr=[“k1″=>”a”,”k2″=>”b”,”k3″=>”c”];   That makes it an association array or a […]