I have 2 inputs from user. One is say `greetings` and the other one is `tell me your name`

But when I write after something hello, `ex: Hello mate!!` Scanner does not read the second input which is `mate` and takes `hello` from first string second one is also same

any advice

Thanks

```
public static void main(String[] args) {
        System.out.println("Choose what would you like to say ?");

        String str1 = "";
        String str2 = "";

        System.out.println("Say any greetings word");
        str1 = input();
        System.out.println("Tell me your name");
        str2 = input();

        if (str2.equalsIgnoreCase("zia")) {
            System.out.println("Hello Mr Zia, What a nice suprise");

        }

        else {
            System.out.println(str1 + " " + str2);
        }

    }

    public static String input() {
        Scanner sc = new Scanner(System.in);
        return sc.next();
    }

```