Question: In Java plz Write a method to display a big X using ascii characters. The method header is: public static void display (int n) where
In Java plz
Write a method to display a big "X" using ascii characters. The method header is: public static void display (int n) where the n is how many rows tall it is. You can use this code as a template for your solution: import java. util. Scanner: public class Pattern { public static void main (String [] args) { Scanner input = new Scanner (System in): System-out-print ("Enter number of lines, n: "): int n = input.nextInt(): displayPattern (n): } public static void displayPattern (int n) { //Fill in code here Enter number of lines: 6 Enter number of lines: 7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
