Java Piscine:
You will need to compile your code if you intend to test it:
javac *.java -d build
Then run the following command :
java -cp build ExerciseRunner
With method overloading, multiple methods can have the same name with different parameters:
int myMethod(int x)
float myMethod(float x)
double myMethod(double x, double y)str.length()
str.contains(subStr)
str.concat(str2)
str.replace(target, replacement)
str.indexOf()
str.lastIndexOf()
str.subString()
str.equals()
=>> Redirect the standard output (System.out) to a memory buffer.
PrintStream printStream = new PrintStream(outputStream);
System.setOut(printStream);