fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. //Eli Valentine
  13.  
  14. //first day of school
  15.  
  16. //this is a program designed to calculate your healthy weight for your height
  17.  
  18. import java.input.Scanner;
  19. public class Valentineweight
  20. {
  21. public static void main(Strings[]args)
  22. {
  23.  
  24. Scanner input= new Scanner(System.in);
  25.  
  26. int gender;
  27. System.out.println("Please enter gender: /n 1.male /n 2.female");
  28. gender.input.nextInt();
  29. }
  30.  
  31.  
  32. }
  33. }
  34. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:18: error: illegal start of expression
import java.input.Scanner;
^
Main.java:18: error: not a statement
import java.input.Scanner;
                 ^
Main.java:19: error: illegal start of expression
public class Valentineweight
^
3 errors
stdout
Standard output is empty