Question: public class SlashFigure { public static final int SIZE = 3 ; public static void main ( String [ ] args ) { drawTop (
public class SlashFigure
public static final int SIZE ;
public static void mainString args
drawTop;
drawMiddle;
drawBottom;
public static void drawTop
drawLine;
drawSpacesSIZE ;
System.out.println;
public static void drawMiddle
for int i ; i SIZE; i
drawSpacesSIZE i ;
System.out.print;
drawSpaces i;
System.out.print;
drawSpacesSIZE i ;
System.out.println;
public static void drawBottom
for int i ; i SIZE; i
drawSpacesi;
System.out.print;
drawSpacesSIZE i ;
System.out.print;
drawSpaces i;
System.out.println;
drawSpacesSIZE;
System.out.println;
drawLine;
public static void drawLine
for int i ; i ; i
System.out.print;
System.out.println;
public static void drawSpacesint count
for int i ; i count; i
System.out.print;
I want ghe code for size and solved this way
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
