Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Java by NguyenVietNamSon ( 5 years ago )
public class info {
String Categorybook, Titlebook, Authorbook;
int YearRelease;
double PriceOnOrder;
public void setCategorybook(String categorybook)
{
Categorybook = categorybook;
}
public void setTitlebook(String titlebook)
{
Titlebook = titlebook;
}
public void setAuthorbook(String authorbook)
{
Authorbook = authorbook;
}
public void setYearRelease(int yearRelease)
{
YearRelease = yearRelease;
}
public void setPriceOnOrder(double priceonorder)
{
PriceOnOrder = priceonorder;
}
public String getCategorybook()
{
return Categorybook;
}
public String getTitlebook()
{
return Titlebook;
}
public String getAuthorbook()
{
return Authorbook;
}
public int getYearRelease()
{
return YearRelease;
}
public double getPriceOnOrder()
{
return PriceOnOrder;
}
public info(String cate, String title, String author, int year, double price)
{
Categorybook = cate;
Titlebook = title;
Authorbook = author;
YearRelease = year;
PriceOnOrder = price;
}
public void Print()
{
System.out.print("\nCategory: " + Categorybook);
System.out.print("\nTitle: " + Titlebook);
System.out.print("\nAuthor: " + Authorbook);
System.out.print("\nYear Release: " + YearRelease);
System.out.print("\nPrice: " + PriceOnOrder);
}
}
Revise this Paste