On 2013-06-17 23:00:36, Rahatzi wrote:
> Hello,
> I am new to Eclim and Java.
>
> I was following a tutorial, and it was about getting input from the user,
> after typing :Java, nothing happens, the program freezes. Here is the code
Hmm, it works fine for me. What OS are you running this on? Can you
give me the result of running the following in vim?
:echo &shell
It shouldn't matter, but can you also give me some additional info:
- what version of java are you using? ($ java -version)
- are you running gvim or vim? if gvim, are you running it embedded in
eclipse?
> Im running:
> import java.util.Scanner;
>
> class GetInputFromUser
> {
> public static void main(String args[])
> {
> int a;
> float b;
> String s;
>
> Scanner in = new Scanner(System.in);
>
> System.out.println("Enter a string");
> s = in.nextLine();
> System.out.println("You entered string "+s);
>
> System.out.println("Enter an integer");
> a = in.nextInt();
> System.out.println("You entered integer "+a);
>
> System.out.println("Enter a float");
> b = in.nextFloat();
> System.out.println("You entered float "+b);
> }
> }
>
>
> -----------------
> Any help is greatly appreciated.
>
> Thank You
>
> --
> You received this message because you are subscribed to the Google Groups "eclim-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
eclim-user+...@googlegroups.com.
> To post to this group, send email to
eclim...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/eclim-user.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>
--
eric