Thanks to visit codestin.com
Credit goes to github.com

Skip to content

aayoubst/java-piscine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

178 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Piscine:

How to run :

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

Methods :

Overloading :

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)

String Methods :

str.length()
str.contains(subStr)
str.concat(str2)
str.replace(target, replacement)
str.indexOf()
str.lastIndexOf()
str.subString()
str.equals()

i/o :

=>> Redirect the standard output (System.out) to a memory buffer.

    PrintStream printStream = new PrintStream(outputStream);
    System.setOut(printStream);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published