1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-15 09:04:04 +02:00
joplin/packages/app-cli/tests/enex_to_md/code5.md

13 lines
243 B
Markdown
Raw Normal View History

```
public class SwapIntegerWithoutTemp {
    public void swapAddition() {
        int a = 3;
        int b = 5;
        a = a + b; // a=8, b=5
        b = a - b; // a=8, b=3
        a = a - b; // a=5, b=3
    }
}
```