008-004-011
Argument Order and Types
Medium
Problem Description
Argument Order and Types
In this problem, you will create a program that defines a formatDate(int year, int month, int day) method, formats the date with / delimiters, and displays the result to standard output.
Learning Objective: Understand the importance of argument order and types
Overview
Create a method with multiple arguments of the same type to learn the importance of order.
Specifications
- Define formatDate(int year, int month, int day) method
- Format and output the date
- Call formatDate(2024, 12, 25)
Output Format
2024/12/25
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
