Ok, I'm taking a intro to programming with java class, and for the most part I've been able to keep up with the assignments. I'm in the process of writing a statement that will output the cube root of a number, I've come up with the below as what I think is what it will take to do this, I get no errors when I compile it but when I run it, it goes straight to the press any key and exits. Any input will be appreciated, I don't want anyone to solve this for me, just point to a line that is in error and a possible link as to where I can go to learn to fix it. Thanks in advance. K

```
/***********************************************
* cubeRoot.java
* Tom Smith
*
* This program will output the cube root of a number.
***********************************************/
import java.util.*;
import java.util.Scanner;
import java.io.*;
import static java.lang.Math.*;
public class cubeRoot {
public static native double cbrt(double x);
public static void main(String[] args) {
if (args.length != 1) System.exit(0);
double x = Double.parseDouble(args[0]);
Scanner keyboard = new Scanner(System.in);
System.out.print("Enter a number: ");
x = keyboard.nextInt();
System.out.printf("The cube root of %f is %f.\n",x, cbrt(x));
}
}
```