Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private int x;
- private int y;
- // Delete me and add more instance variables here
- private String borough;
- private String race;
- private int perStop;
- private String arrestMade;
- private String summIssue;
- private boolean forceUsed;
- private String precinct;
- private int datestop;
- private int timestop;
- private int age;
- private String gender;
- =======
- x = Integer.parseInt(row[107]);
- y = Integer.parseInt(row[108]);
- borough = row[100];
- race = row[81];
- if (!(row[10].indexOf("*") >= 0)){
- perStop = Integer.parseInt(row[10]);
- }
- else{
- perStop = 0;
- }
- arrestMade = row[14];
- summIssue = row[16];
- forceUsed = false;
- for (int i = 32; i <= 40; i++)
- {
- if(row[i].equals("Y"))
- {
- forceUsed = true;
- }
- }
- // Continue storing instance varaibles
- // Be sure to convert to appropriate type
- precinct = row[1];
- datestop= Integer.parseInt(row[3]);
- timestop = Integer.parseInt(row[4]);
- if(row[83].trim() == "")
- {
- age = Integer.parseInt(row[83]);
- }
- gender = row[80];
- =====
- public boolean isPct(int p){
- return getPct() == p;
- }
- public int getDate(){
- return datestop;
- }
- public boolean isDate(int date){
- return getDate() == date;
- }
- public int getTime(){
- return timestop;
- }
- public boolean isTime(int time){
- return getTime() == time;
- }
- public int getAge(){
- return age;
- }
- public boolean isAge(int a){
- return getAge() == a;
- }
- public String getGender(){
- return gender;
- }
- public boolean isGender(String a){
- return gender.equals(a);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement