Here is my code
import java.io.*;
class Add
{
public static void main (String args[] ) throws IOException;
{
BufferedReader br=new BufferedReader( new InputStreamReader (System.in));
System.out.println("Enter the value of X:");
int x=Integer.parseInt(br.readLine());
System.out.println("Enter the Value of Y:");
int y=Integer.parseInt(br.readLine());
int z=x+y;
System.out.println("\n\nValue of X + Y = " +z);
}
}
when i try to compile in command prompt.
first i have to set the path. then i typed javac Add.java
then it says
javac : file is not found : add. java
Usage : javac <options><source files>
please help me. if anyone can explain whats going on. im a mega noob in java. help me