Create Examples of pi java code