On Sat, Apr 23, 2011 at 1:50 PM, Rodrigo Ruiz <[email protected]>wrote:
> 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: class Main is public, should be declared in a file named
> Main.java
> public class Main {
> ^
> 1 error
>
> Rodrigo, please rename your file to Main.java.
Good luck,
-Conrad
> --
> 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.
>
--
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.