CJCoding With Joseph
15free / daySign inCreate account

Thompson Rivers University

BMIApp – Driver Class

Assignment 1 BMI - SM 2025

This is the entry point of the program. We need a main method so that Java knows where to start.

public class BMIApp {
    public static void main(String[] args) { }
}

Inside this method, we will create an array to store different BMI objects and then loop through that array to print the results.


Create an array of MyBMI references

Members only

Keep reading this lesson

You've reached the end of the free preview. Unlock the rest of this lesson plus 54 more lessons in Thompson Rivers University.

  • Unlimited coding questions
  • Unlimited access to all classroom material
  • Weekly live call for questions and guidance
  • 3,000 AI tutor tokens / month
  • Personal SQL database (3 MB)
  • Progress tracking

Cancel any time.