[java]移除List中重複的Object
其中(一)~(三)不限List型態
(一)使用 set
public static <E> List<E> removeDuplicates(List<E> list){
Set<E> unique = new LinkedHashSet<>(list);
list.clear();
list.addAll(unique);
return list;
}
[java]移除List中重複的Object
其中(一)~(三)不限List型態
(一)使用 set
public static <E> List<E> removeDuplicates(List<E> list){
Set<E> unique = new LinkedHashSet<>(list);
list.clear();
list.addAll(unique);
return list;
}
Win10新增功能快捷鍵大全:
貼靠窗口:Win + 左/右 > Win + 上/下 > 窗口可以變為 1/4 大小放置在屏幕 4 個角落。
切換窗口:Alt + Tab(不是新的,但任務切換界面改進)。
任務視圖:Win + Tab(松開鍵盤界面不會消失)。
創建新的虛擬桌面:Win + Ctrl + D。
關閉當前虛擬桌面:Win + Ctrl + F4。
切換虛擬桌面:Win + Ctrl + 左/右。
Oracle SQL Developer version 4.0.3.16
常用:
ctrl-enter : executes the current statement(s)
F5 : executes the current code as a script (think SQL*Plus)
ctrl-space : invokes code insight on demand
ctrl-Up/Dn : replaces worksheet with previous/next SQL from SQL History
ctrl-shift+Up/Dn : same as above but appends instead of replaces
shift+F4 : opens a Describe window for current object at cursor
ctrl+F7 : format SQL
ctrl+/ : toggles line commenting
ctrl+e : incremental search
Alt+PageDown: Will take focus from worksheet edit area to results pane.
Alt+PageUp takes you back up in the opposite direction
web.xml聲明部分一般分為如下版本的xsd,
web-app_2_2.xsd
web-app_2_3.xsd
web-app_2_4.xsd
web-app_2_5.xsd
web-app_3_0.xsd
更詳細的列出各版本web.xml聲明部分吧,如下:
(溫故知新) Hibernate 簡易練習(查找資料)
原始碼下載: https://goo.gl/xu4KXV https://goo.gl/1S0qJt
【開發環境】
Tomcat 7
MySQL
【開發工具】
Intellij IDEA 14
【使用FrameWork】
SpringMVC
jQuery
【主要畫面】