Solution in Java
first = second - first; // first = oldsecond - oldfirst
second = second - first; // second = oldsecond - (oldsecond - oldfirst) = oldfirst
first = first + second; // oldsecond - oldfirst + oldfirst = oldsecond
Popular posts
Schedule Jenkins build periodically
How to configure Jenkins build schedule... Jenkins schedule format
Spring Boot + TestNG. How to get started
Minimal required code...
Open Source
Easy Files |
|
Read files with easy |
AppProps |
|
Load multiple application property files from different locations |
EasyLog |
|
Open source library for logging and debugging |
How to publish Open Source library
Step by step guide
Recent posts
How to render a random image
Step by step instructions on how to render a random image on HTML refresh for static sites
Log all client requests and responses - Apache HTTP client, RESTEasy
first = second - first; // first = oldsecond - oldfirst
second = second - first; // second = oldsecond - (oldsecond - oldfirst) = oldfirst
first = first + second; // oldsecond - oldfirst + oldfirst = oldsecond