0% found this document useful (0 votes)
11 views

Lab A 1

This lab teaches students how to use print and println methods to output text to the console window by drawing an ASCII box. Students will create a Lab0a1 Java file that uses System.out.println statements to print their name, date, and a border of plus signs to form a box in the console output.

Uploaded by

Nickdia111
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Lab A 1

This lab teaches students how to use print and println methods to output text to the console window by drawing an ASCII box. Students will create a Lab0a1 Java file that uses System.out.println statements to print their name, date, and a border of plus signs to form a box in the console output.

Uploaded by

Nickdia111
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Computer Science I

Lab A1 ASCII BOX

Lab Value - 100

Lab Goal :
window.

This lab was designed to teach you how to use print and println to write text to the console

Lab Description : Lab Shell :

Draw a box using ascii characters.

public class Lab0a1 { public static void main(String[] args) { System.out.println("name \t date \n\n" ); System.out.println("+++++++++++++++++++++++++ " );

} }

Sample Output :
name date

Files Needed ::
Lab0a1.java

+++++++++++++++++++++++++ +++++++++++++++++++++++++ +++++++++++++++++++++++++ ========================= ========================= +++++++++++++++++++++++++ +++++++++++++++++++++++++ +++++++++++++++++++++++++ ========================= ========================= +++++++++++++++++++++++++ +++++++++++++++++++++++++ +++++++++++++++++++++++++

A+ Computer Science Lab ASCII Art www.apluscompsci.com

You might also like