Question: I need to find a way to get the closest number divisible by three for a given number. As it's only the number three, and i was in a rush, i used if statements. I was wondering if there was a cleaner way of getting the same result?

<https://jsfiddle.net/>

```js
let indexes = [0, 9, 26, 39];

for (let i = 0, l = indexes.length; i < l; i++) {
  newIndex = indexes[i];
  if (!(newIndex % 3 == 0)) {
    if (((newIndex - 1) % 3 == 0)) {
      newIndex = (newIndex - 1);
    } else {
      if (((newIndex + 1) % 3 == 0)) {
        newIndex = (newIndex + 1);
      } else if (((newIndex + 2) % 3 == 0)) {
        newIndex = (newIndex + 2);
      } else if (((newIndex + 3) % 3 == 0)) {
        newIndex = (newIndex + 3);
      }
    }
  }
  console.log(newIndex);
}
```

---

```
input: 0
expected output: 0

input: 9
expected output: 9

input: 26
expected output: 27

input: 39
expected output: 39

```

Answer: 
. is the current directory.

In Windows the path separator is the backslash .
But in literal strings in Java code you have to escape it with another backslash. (The same for Tab \t, e.g.)

But you can use the normal slash (the path separator in Unix/Linux) interchangeably.

So the path is: `./src/test/resources/ObjectRepository/config.properties`
* `.` means it's the current directory
* `/` is normally used in paths to show the structure of files and folders
* `\\` is referring to `\` (used double because `\` is a special character)
which is same as / but used differently depending on the OS