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. Scanner scnr = new Scanner(System.in);
  13. int arrowBaseHeight = 0;
  14. int arrowBaseWidth = 0;
  15. int arrowHeadWidth = 0;
  16.  
  17.  
  18. System.out.println("Enter arrow base height: ");
  19. arrowBaseHeight = scnr.nextInt();
  20.  
  21. System.out.println("Enter arrow base width: ");
  22. arrowBaseWidth = scnr.nextInt();
  23.  
  24. System.out.println("Enter arrow head width: ");
  25. arrowHeadWidth = scnr.nextInt();
  26.  
  27. while (arrowHeadWidth <= arrowBaseWidth) {
  28. System.out.println("Enter arrow head width: ");
  29. arrowHeadWidth = scnr.nextInt();
  30. }
  31.  
  32. for (in i = 0; i < arrowBaseHeight; i++) {
  33. for (int j = 0; j < arrowBaseWidth; j++) {
  34. System.out.print("*");
  35. }
  36. System.out.println();
  37. }
  38.  
  39. for (int i = 0; i < arrowHeadWidth; i++) {
  40. for (int j = arrowHeadWidth; j>i; j--) {
  41. System.out.print("*");
  42. }
  43. System.out.println();
  44. }
  45.  
  46. return;
  47.  
  48. }
  49.  
  50. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:32: error: cannot find symbol
      for (in i = 0; i < arrowBaseHeight; i++) {
           ^
  symbol:   class in
  location: class Ideone
1 error
stdout
Standard output is empty