about summary refs log tree commit diff
path: root/usth/ICT2.2/final/Report.java
blob: ec4ee23aaa24ab993432459494a40745c5b4d298 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
public class Report
{
  String name;
  String activity;
  int rate;

  public Report(String name, String act, int rate)
  {
    this.name = name;
    this.activity = act;
    this.rate = rate;
  }

  public String toString()
  {
    return String.format("%s: %s: %s", name, activity, rate);
  }
}