Hello, Can somebody help please. I am getting correct answer written in file in netbeans but not getting any score here. Here is my code -
package addition_file;import java.util.Scanner;import java.io.*;public class Solution {public static void main(String[] args) throws FileNotFoundException, IOException {Scanner sc = new Scanner(new File("addin.txt"));File file = new File("addout.txt");FileWriter filew = new FileWriter(file);int a = sc.nextInt();int b = sc.nextInt();int c = a + b;filew.write(String.valueOf(c));filew.close();}
Read more… (26 words)