as far as i can tell there's a match. Can someone tell me what the error is?
package com.codegym.task.task03.task0322;
/*
Deep and pure love
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner input1 = new Scanner(System.in);
Scanner input2 = new Scanner(System.in);
Scanner input3 = new Scanner(System.in);
String name1 = null;
String name2 = null;
String name3 = null;
for (int i = 1; i < 4; i++) {
System.out.println("please enter a name");
if (i ==1)
name1 = input1.nextLine();
if (i==2)
name2 = input2.nextLine();
if (i==3)
name3 = input3.nextLine();
}
System.out.println(name1 + " + " + name2 + " + " + name3 + " = Pure love. Ooo la-la!");
}
}