package main;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
error1-> public class DigitSummer {
/**
* @param args
*/
public static void main(String[] args) {
System.out.println("Program Started");
System.out.println("a + b caluculator");
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String s;
int i = 0;
Integer a = null;
Integer b = null;
System.out.println("Mutqagreq a heto enter heto b u enter");
try {
while ((s = in.readLine()) != null && s.length() != 0) {
if (i == 0) {
error2-> a = Integer.parseInt(s);
i++;
}
else if(i == 1) {
error3-> b = Integer.parseInt(s);
i++;
}
else break;
}
} catch (IOException e) {
System.err.println(e.getMessage());
}
if( a != null && b != null) {
System.out.println("patasxan");
error4-> System.out.print(a+b);
}
}
}
"gev.java": class DigitSummer is public; should be declared in a file named DigitSummer.java at line 7, column 1
"gev.java": incompatible types;found : int,required: java.lang.Integer at line 24, column 26
"gev.java": incompatible types;found : int,required: java.lang.Integer at line 28, column 26
"gev.java": operator + cannot be applied to java.lang.Integer,java.lang.Integer at line 39, column 22