Also how can I compile and run a simple code, like java for example?

I just typed:

package Classes;
import java.util.*;
public class Main {

/**
 * @param args
 */
public static void main(String[] args)
{
System.out.println("Hi");
}
}

In my TextMate and it just doesn't run, it gives an error:
untitled.java:3<txmt://open?url=file:///Users/rodrigoruiz/Desktop/untitled.java&line=3>:
class
Main is public, should be declared in a file named Main.java
public class Main {
       ^
1 error

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to