import java.io.*;
class test
{
public static void main (String[] args) throws java.lang.Exception
{
int line=4;
for(int l=1;l<=line;l++){for(int k=1;k<=line-l;k++){System.out.print(" ");}
for(int x=1;x<=2*l-1;x++){System.out.print('*');}
System.out.print("\n");
}
int line2=3;
for(int l=1;l<=line2;l++){for(int k=1;k<=l;k++){System.out.print(" ");}}
for(int x=1;x<=7-2*l;x++){System.out.print('*');}
System.out.print("\n");
}
}
test.java:13: error: cannot find symbol
for(int x=1;x<=7-2*l;x++){System.out.print('*');}
^
symbol: variable l
location: class test
1 error
class test
{
public static void main (String[] args) throws java.lang.Exception
{
int line=4;
for(int l=1;l<=line;l++){for(int k=1;k<=line-l;k++){System.out.print(" ");}
for(int x=1;x<=2*l-1;x++){System.out.print('*');}
System.out.print("\n");
}
int line2=3;
for(int l=1;l<=line2;l++){for(int k=1;k<=l;k++){System.out.print(" ");}}
for(int x=1;x<=7-2*l;x++){System.out.print('*');}
System.out.print("\n");
}
}
test.java:13: error: cannot find symbol
for(int x=1;x<=7-2*l;x++){System.out.print('*');}
^
symbol: variable l
location: class test
1 error