Java Array Programming Projects Student Labs

[ Home] [ Site Map ]

Links:




Array Manipulation

Moderate Difficulty


Fun Array Project In this project, you will perform various operations on an array of ints and and an array of doubles (Source code for the project)
String Array Project
  • the StringArr class as follows
    • The Constructors
      • Default Construct should initialize the sArr instance variable to
      3 different strings (of your choosing)
      • Write a constructor with a single parameter, an array of strings, and initialize sArr to the parameter
    • Methods
  • Projects :
  • SeatingChart This classs should have the following:
  • instance variables: String[][] theChart , int numRows, int numCols .
  • a default constructor that initializes the instance variables.
  • the array should be initialized to have empty Strings
  • A constructor that initializes theChart to the parameter
  • MazeGenerator: Create a MazeGenerator Class that creates Maze objects
  • the Maze class should be implemented using a two dimensional array and should use an X to symbolize a wall and a minus sign to symbolize a clear passage. Below is an example of what a maze object would like, graphically. Every maze should have a starting and ending point (feel free to implement starting and ending points any way that you want-- I used a red S and a red F to symbolize start and finish)
    S - x - -
    - x - x x
    - x - x -
    - x - x -
    - - - - F
    site map | resources