fork(1) download
  1. //Eli Valentine
  2.  
  3. //first day of school
  4.  
  5. //this is a program designed to calculate your healthy weight for your height
  6.  
  7. import java.input.Scanner;
  8. public class Valentineweight
  9. {
  10. public static void main(Strings[]args)
  11. {
  12.  
  13. Scanner input= new Scanner(System.in);
  14.  
  15. int gender;
  16. System.out.println("Please enter gender: /n 1.male /n 2.female");
  17. gender.input.nextInt();
  18. }
  19.  
  20.  
  21. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:8: error: class Valentineweight is public, should be declared in a file named Valentineweight.java
public class Valentineweight
       ^
Main.java:7: error: package java.input does not exist
import java.input.Scanner;
                 ^
Main.java:10: error: cannot find symbol
	public static void main(Strings[]args)
	                        ^
  symbol:   class Strings
  location: class Valentineweight
Main.java:13: error: cannot find symbol
	Scanner input= new Scanner(System.in);
	^
  symbol:   class Scanner
  location: class Valentineweight
Main.java:13: error: cannot find symbol
	Scanner input= new Scanner(System.in);
	                   ^
  symbol:   class Scanner
  location: class Valentineweight
Main.java:17: error: int cannot be dereferenced
	gender.input.nextInt();
	      ^
6 errors
stdout
Standard output is empty