User Tools

Site Tools


cs176:501b:array_of_stars

2D Array Lab Activity

Try writing a simple program ArrayOfStars.java that uses a 2D (two-dimensional) array to store and print a box of stars (asterisks):

Sample program output:

Input number or rows:
3
Input number of columns:
5

*****
*   *
*****
cs176/501b/array_of_stars.txt · Last modified: 2015/04/24 13:54 by jchung

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki