[Java] How to run Java code on ideone.com, Compound

Tran ideone.com page is a code that allows you to give up, stored in user accounts and special can compile and run it to us immediately. However with the introduction of Java code to which we often mistake:

Main.java:6: error: class bt1 is public, should be declared in a file named bt1.java
public class bt1 {
       ^
1 error

Error due to our class name incorrectly and sometimes more package. To overcome the package you give away, and rename the class containing the main method Main.

This is illustrative example: Calculate the area of ​​the triangle

Also we can apply on the site lets compile code directly like spoj.vn,…