is there a way to insert a pause after a scan command? : <p>I am making a project in java and this is my first live Project. I am using the scanner class for the first time. I encountered this problem where the compiler skips my scan commands and goes on to the next output command. When i run the given code, it displays the following</p>

<blockquote>
  <p>PS: my project is not even near completion so my code looks very rough and not even complete. so please do not remind me. Thank you :)</p>
</blockquote>

<pre><code>
import java.util.Scanner;
import java.io.*;
public class A{


public static void main(String ... args){ 
    Scanner scan = new Scanner(System.in);
System.out.println("\n"); 
System.out.println("                            Grand Theft Auto Online Profit Calulator");
System.out.println("Choose one of the following option:");
System.out.println("1.Existing User");
System.out.println("2.First time");



int user = scan.nextInt();
if(user == 2)
{
    // ask for bunker 
    System.out.println("Do you own a bunker? Enter y or n");
    String bunks = scan.nextLine();

    //ask for nightclub
    System.out.println("Do you own a Nightclub? Enter y or n");
    String nclub = scan.nextLine();

    // ask for crates warehouse
    System.out.println("Do you own a Crates Warehouse? Enter y or n");
    String cratesboi = scan.nextLine(); 

}

}

}

</code></pre>

<p>RESULT:</p>

<pre><code>Do you own a bunker? Enter y or n 
Do you own a Nightclub? Enter y or n
y
Do you own a Crates Warehouse? Enter y or n
n
</code></pre>

<p>it shows the nightclub display straight after the bunker one without asking for an answer. whereas in crates the case is defference. i expected the compiler to ask me if i own a bunker or not but it did not</p>
