Skip to content

Conversation

Copy link

Copilot AI commented Nov 16, 2025

Adds a for loop to the main method that prints numbers 1 through 10 after the "Hello World!" message.

Changes

  • App.java: Added for loop (1-10) in main() after existing message output
  • AppTest.java: Updated testAppMain to verify loop output in assertion
  • pom.xml: Added compiler source/target properties (1.8) to fix build compatibility with Java 17

Output

Hello World!
1
2
3
4
5
6
7
8
9
10
Original prompt

add loop from 1 to 10


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits November 16, 2025 16:27
Co-authored-by: MUDYoussef <96345361+MUDYoussef@users.noreply.github.com>
Co-authored-by: MUDYoussef <96345361+MUDYoussef@users.noreply.github.com>
Copilot AI changed the title [WIP] Add loop from 1 to 10 Add loop printing numbers 1-10 to main output Nov 16, 2025
Copilot AI requested a review from MUDYoussef November 16, 2025 16:32
@MUDYoussef
Copy link
Owner

@copilot can you merge and comit

Copy link
Author

Copilot AI commented Nov 16, 2025

@copilot can you merge and comit

All changes have been committed and pushed to this PR. The commits are:

  • d98b478: Fix Maven compiler settings for Java 8
  • 6e76ad9: Add loop from 1 to 10 in main method and update tests

I don't have permissions to merge the PR. You can merge it yourself by clicking the "Merge pull request" button on the GitHub PR page.

Copy link
Owner

@MUDYoussef MUDYoussef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comit

@MUDYoussef
Copy link
Owner

comit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants