If you want to write a
Java
program then you must know and use the correct
Java
syntax.
import java.io.*;
class Salary
{
String name;
String company;
int salary ;
public Salary(String n, String e, int s)
{
name=n;
company=e;
salary=s;
}
public void show()
{
System.out.println(name+" "+company+" "+salary);
}
public static void main(String args[])
{
Salary sa = new Salary("martin","ETV",1500);
sa.show();
}
}