I am writing a program it compiles but the code gives me a warning that it uses unchecked or unsafe operations.Recompile with -Xlint.I am unable to find the error.Please help me sort out this.
import java.io.*;
import java.util.*;
public class A1{
private HashMap<String,ArrayList<Integer>> data= new HashMap<String,ArrayList<Integer>>();
public void main () throws IOException{
BufferedReader ob=new BufferedReader(new InputStreamReader(System.in));
int t = Integer.parseInt(ob.readLine());
for(int i=0;i<t;i++){
String a=ob.readLine();
String spl[]= a.split(" ");
ArrayList<Integer> inputs= new ArrayList<Integer>();
for(int j=0;j<Integer.parseInt(spl[0]);j++){
int prices=Integer.parseInt(ob.readLine());
inputs.add(prices);
}
Collections.sort(inputs);
data.put(spl[1],inputs);
}
Iterator iter = data.entrySet().iterator();
while(iter.hasNext()){
Map.Entry ele = (Map.Entry)iter.next();
int fund=Integer.parseInt((String)ele.getKey());
System.out.println(maxhouse(fund,(ArrayList<Integer>)ele.getValue()));
}
}
int maxhouse(int fund,ArrayList<Integer> a){
int sum=0;
int c=0;
for(int i=0;i<a.size();i++){
sum=sum+a.get(i);
if(sum<fund){
c++;
}
else if(sum==fund){
c++;
break;
}
else{
break;
}
}
return c;
}
}