S
S
speed82014-09-20 20:58:29
Java
speed8, 2014-09-20 20:58:29

How to run a simple program?

public class Home
{
int a;
int b;

public static void main (String[] args)
{
System.out.print(1);
}
public static double pi ()
}
return 3.14;
}
}

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Taratin, 2014-09-20
@Taraflex

In console.

P
Pavel, 2014-09-20
@VoRez

First, you need to compile what you wrote. To do this, download the JDK and run javac Home.java in the console and you will get a compiled Home.class file that you can run using the java virtual machine itself, in other words, by typing java Home.class in the console Are
you running Windows or Linux?

S
Sergey, 2014-09-21
Protko @Fesor

ideone.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question