Fork, Commit, Merge - Easy Issue (Kotlin)

Open Beginner friendly
#8,752 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
95/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
java, kotlin
Domain
cli

Research direction

Open tasks/kotlin/easy/GreetingApp.kt and read the README.md setup instructions if Kotlin or Java is not installed. Compile it with the command in the issue, then run the generated JAR and enter a name. Done means the program prints “Hello, [name]!” with the entered name.

Written by the indexing model from the issue text.

Description

easy first-contributor first-contributors good first issue help wanted kotlin up-for-grabs

Fork, Commit, Merge - Easy Issue (Kotlin)

Create a Simple Kotlin Program to Print User's Input

Note: You don't have ask permission to start solving the issue or get assigned, since these issues are supposed to be always open for new contributors. The actions-user bot will reset the file back to previous state for the next contributor after your commit is merged. So you can just simply start working with the issue right away!

Navigate to the tasks/kotlin/easy directory from the root of your project.

Then open a file called GreetingApp.kt.

For this task, you will create a simple Kotlin program that prompts the user to enter their name and then prints out a greeting using their name.

Requirements:

  • Use the Kotlin standard library to get input from the user.
  • Print out "Hello, [name]!" where [name] is the name entered by the user.

To run the program, first you need to compile the code using this command:

kotlinc tasks/kotlin/easy/GreetingApp.kt -include-runtime -d tasks/kotlin/easy/GreetingApp.jar

That will create compiled jar-file into the directory, which you can run using Java:

java -jar tasks/kotlin/easy/GreetingApp.jar

If the program works as requested in the task, you are ready to make a pull request!


To work with this issue, you need to have Kotlin and Java installed to your local machine.
Check out README.md for more instructions of installing Kotlin and Java. Also there are detailed instructions of how to make a pull request.

Feel free to ask any questions here if you have some problems!

Also, kindly give this project a star to enhance its visibility for new developers!
Dominant language
CSS
Stars
511
Forks
2.6k
Avg merge
17h 38m
Merged PRs (30d)
38

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fork-commit-merge/fork-commit-merge

All issues in fork-commit-merge/fork-commit-merge

Similar issues

More CLI issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.