diff --git a/README.md b/README.md index debb56b..23785e2 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,36 @@ Create a function that receives an integers array and returns the number that ap | (1,1,2) | 2 | | (2,2,1) | 1 | +fun main() { + + fun first(interArray: ArrayList) { + val y = ArrayList() + y.add(2) + y.add(4) + y.add(6) + y.add(4) + y.add(9) + y.add(6) + y.add(2) + val x = y.contains(9) + println(x) + + val z = ArrayList() + y.add(1) + y.add(1) + y.add(2) + val m = z.contains(2) + println(m) + + val v = ArrayList() + y.add(2) + y.add(2) + y.add(1) + val b = v.contains(1) + println(b) + } + + ## 2nd Challenge Create a function that receives a string then it converts uppercase letters into lowercase and vice versa. The function then should print the converted value. @@ -21,6 +51,8 @@ Create a function that receives a string then it converts uppercase letters into | My name is Ali | mY NAME IS aLI | | sHroog | ShROOG | +fun main(){ + ## 3rd Challenge Create a function that receives an array of items & arrays and returns one flattened array with all items exluding null values.