package hadoop;

import gsod.DataSet;

import java.io.IOException;

import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

public class MaxTemperatureMapper extends
		Mapper<LongWritable, Text, Text, IntWritable> {

	@Override
	public void map(LongWritable key, Text value,
			MaxTemperatureMapper.Context context) throws IOException,
			InterruptedException {
		String line = value.toString();

		if (line.startsWith("STN---"))
			return;

		String year = DataSet.getYear(line);
		int airTemperature = DataSet.getMax(line);

		if (airTemperature != DataSet.MISSING) {
			context.write(new Text(year), new IntWritable(airTemperature));
		}
	}

}

@@ -315,16 +315,91 @@
 ble%3E %7B%0A%0A
+%09private String line;%0A%09private String year;%0A%09private int airTemperature;%0A%09%0A
 %09@Overri
@@ -401,16 +401,16 @@
 verride%0A
-
 %09public 
@@ -537,23 +537,16 @@
 ion %7B%0A%09%09
-String 
 line = v
@@ -610,23 +610,16 @@
 urn;%0A%0A%09%09
-String 
 year = D
@@ -642,20 +642,16 @@
 ine);%0A%09%09
-int 
 airTempe

Change yeat and temp to private class vars.