好的代碼習慣

1. 變量定義:int arrowLeft = 0, arrowRight = 0;java

2. 三元表達式:char topElement = stack.empty() ? '#' : stack.pop();數組

3. 獲取兩個值中較大的一個:maxVal = Math.max(maxVal, arrowLeft+ arrowRight);工具

4. 初始化數組:new int[]{i,j}spa

5. Spring工具類:CollectionUtils.isEmpty(list)   // LIST,SETcode

相關文章
相關標籤/搜索