Browse Source

Update 'README.md'

git-leon 5 years ago
parent
commit
6ffc270415
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      README.md

+ 4
- 2
README.md View File

50
 * remove a specific element from an array `removeElementFromArray`
50
 * remove a specific element from an array `removeElementFromArray`
51
 * insert an element into an array a specific position `insertIntoArrayAt`
51
 * insert an element into an array a specific position `insertIntoArrayAt`
52
 * find the maximum and minimum value of an array `findMaxMinOfArray` return a 
52
 * find the maximum and minimum value of an array `findMaxMinOfArray` return a 
53
+
54
+* Example of MaxMin class
53
 ```java
55
 ```java
54
 public class MaxMin{
56
 public class MaxMin{
55
-    public int max;
56
-    public int min;
57
+    int max, max;
58
+    // ommitted setters, getters, and constructors for brevity
57
 }
59
 }
58
 ```
60
 ```
59
 * remove duplicate elements from an array, return new array `removeDupesFromArray` (make it an array of Integers)
61
 * remove duplicate elements from an array, return new array `removeDupesFromArray` (make it an array of Integers)