Professional Documents
Culture Documents
{
if($3=="finance")
total=total+$4;
}
END{
if(total==0)
print"No Asset Found";
else
print"Total Asset Price = "total;
}'
=================================================
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
min=players[i].getMatchesPlayed();
obj1=players[i];
}
return obj1;
pObj=players[i];
}
}
return pObj;
class Player
{
//Enter your Code here
int id;
int matchesPlayed;
int totalRuns;
String name;
String team;
public int getId()
{
return id;
}
public int getMatchesPlayed()
{
return matchesPlayed;
}
public int getTotalRuns()
{
return totalRuns;
}
public String getName()
{
return name;
}
public String getTeam()
{
return team;
}
public void setId(int id)
{
this.id = id;
}
public void setMatchesPlayed(int matchesPlayed)
{
this.matchesPlayed = matchesPlayed;
}
public void setTotalRuns(int totalRuns)
{
this.totalRuns = totalRuns;
}
public void setName(String name)
{
this.name= name;
}
public void setTeam(String team)
{
this.team = team;
}
Player(int id, int matchesPlayed, int totalRuns, String name, String team)
{
this.id = id;
this.matchesPlayed = matchesPlayed;
this.totalRuns = totalRuns;
this.name = name;
this.team = team;
}
}