| S.no | Keywords |
|---|---|
| 1 | return statement //statement or true or false |
| 2 | math.abs //absolute value |
| 3 | return(a < 0 && b < 0); //returns true whenever its true |
| 4 | str.length(), str.substring(0,3).equals("not")//string |
| 5 | fix = str.substring(0,2) // firstTwo.equals("hi")//string |
| 6 | .charAt//character |
| 7 | return str.substring(0, 1) + str.substring(4); |
| 8 | str. substring(1,3).equals("ix"))/substring start at 1 and end just before 3 |
| 9 | str.charAt(0)=='o')//difference between " and ' |
| 10 | str.toUpperCase()//\ and String back = str.substring(cut); // this takes from cut to the end |
| S.no | Keywords |
|---|---|
| 1 | str.indexOf("x") |
| 2 | x.startsWith("xx") |
| 3 | return(a < 0 && b < 0); //returns true whenever its true |
| 4 | nums[i] == 9//to check if no in ith position in the array is equal to 9 |
| 5 | int len = Math.min(a.length(), b.length()) |
| 6 | i += 4 //increment by 4 |