以下未經過嚴格驗證,使用前請先做好備份
目前遇到一個問題,就是無法使用刪除nextcloud的檔案,
- 開啟維護模式
docker exec nextcloud occ maintenance:mode --on| /** | |
| author: Claud Hu | |
| desc: Selection Sort,依序由小到大的排列,從第0個位置開始排序 | |
| 舉例來說 | |
| original array: [632,33,55,1,88] | |
| round 1 : [1,632,55,33,88] 第1輪結束,第0個位置是最小值 | |
| round 2 : [1,33,632,55,88] 第2輪結束,比第0個位置大,但比其他數值小 | |
| round 3 : [1,33,55,632,88] 第3輪結束,比第1個位置大,但比其他數值小 | |
| round 4 : [1,33,55,88,632] 第4輪結束,比第2個位置大,但比其他數值小 | |
| finish: [1,33,55,88,632] |
| /** | |
| * Author: Claud Hu | |
| * 2017 / 4 / 28 日 | |
| */ | |
| import java.util.Scanner; | |
| /** 如何使用Bubble Sort排序,然後使用BinarySearch進行搜尋**/ | |
| class BubbleSort{ | |
| public static void main(String args[]){ |
| import java.util.Scanner; | |
| class BubbleSort{ | |
| public static void main(String args[]){ | |
| final int ARRAY_SIZE = 10; // the size that you want | |
| int [] randomIntArray = new int[ARRAY_SIZE]; | |
| for(int i = 0 ; i < ARRAY_SIZE ; i++){ | |
| randomIntArray[i] = (int) (Math.random()*10); //Push value into Array | |
| } | |
| //Check our Array value | |
| for(int i = 0 ; i < ARRAY_SIZE ; i++){ |