Explain this java code please?
I have just copied the parts of the program that i dont fully understand, if you could explain it to me.
Thanks

  
  
 // I know the first line creates a new object of the scanner class called sc
// The second line asks for input
//What does the third line do?


    Scanner sc = new Scanner(System.in);
    System.out.print("Enter Initial Price");
    price = sc.nextDouble();

Explain this java code please?
===

I have just copied the parts of the program that i dont fully understand, if you could explain it to me.
Thanks

  
  
 // I know the first line creates a new object of the scanner class called sc
// The second line asks for input
//What does the third line do?


    Scanner sc = new Scanner(System.in);
    System.out.print("Enter Initial Price");
    price = sc.nextDouble();
