Enum variable is used in switch sentence-java
摘要:在做自动化测试的时候,写脚本用到了Enum类型,原来跟C#语法不同,这里跟在case后的enum不用写枚举类型,直接写值就可以了。 Color color=null; switch(color) { case red:break; case green:break; default:break; }public enum Color{red,green}
阅读全文
posted @
2012-11-21 23:31
-Anny-
阅读(163)
推荐(0)
英语人名书写规则
摘要:From:http://wenda.tianya.cn/question/4709851717ee730e姓名是社会成员的符号或标记,英美人的姓和顺序名中国人的相反。他们是:名在前,姓在后,如 Nanthan Hale(内森·黑尔),Nanthan是名,Hale 是姓。所以名叫 first name,姓叫 last name(名也叫 given name或 Christian name;姓也叫 surname或 family name)。有时,为了纪念某人,在 first name 与 last name之间还可以有一个名,叫 middle name。如 William Paul T
阅读全文
posted @
2012-11-15 18:01
-Anny-
阅读(6426)
推荐(0)
Create a shared folder in Oracle VM VirtualBox
摘要:A new VM is created. If you want to share the folder with VM, please do these steps below:1. Host machineStop the VM and Click Settings...Go to Shared Folders tab and specify the folder you want to shareStart the VM2. VMRight click on My ComputerMap network drive...Select the folder you shared in Ho
阅读全文
posted @
2012-11-01 19:14
-Anny-
阅读(229)
推荐(0)