I found out that the bottom negative values were showing because there were spaces in my string with which I was plotting graph.So I wrote it this way, Hopefully it helps someone in the future.
String see = pull.replaceAll("\\s+","");
int[] intArray = new int[see.length()];
for(int k=0; k < see.length(); k++){
intArray[k] = Character.digit(see.charAt(k), 10);
}