Fix the program

Report a typo

You are given a program that should read three strings, concatenate them and output the result.

For some reason, the program doesn't compile.

Fix all compile-time errors as well as logic-errors.

Sample Input 1:

a b c

Sample Output 1:

abc
Write a program in Java 17
import java.util.Scanner;

public class Main {
public static vo1d main(String[] args) {
Scanner scanner = new Scanner(System.in);

String a = scanner.next();
int b = scanner.next();
String c = scanner.next()

String result = a - b - d;

System.out.println(result);
}
}
___

Create a free account to access the full topic