Hey Guys I don't get what I need to add Im fairly new in Java.
this is my code but it gives me these below the line errors below
import javax.swing.*;
public class Movies
{
private String name;
private double price;
private int year;
public Movies
{
name="";
price=0.0;
year=0;
}
public Movies(String name,double price,Int year)
{
this.name = name;
this.price = price;
this.year =year;
}
string getname()
{
return name;
}
doube getprice()
{
return price;
}
int getyear()
{
return year;
} ;
}
public void double adjust()
{
if(year<2000)
price = price-(price*0.15);
else if(year =<2005)
price = price-(price*0.1);
else if(year =<2009)
price = price-(price*0.05);
}
________________________________________________________________________________
C:\Program Files\Xinox Software\JCreator LE\MyProjects\Object.java:10: <identifier> expected
{
^
C:\Program Files\Xinox Software\JCreator LE\MyProjects\Object.java:40: 'class' or 'interface' expected
public void double adjustPrice()
^
2 errors
Process completed.