Skip to content

A beginner Java assignment for the CSTA Conference covering standard I/O with stdin and stdout

License

Notifications You must be signed in to change notification settings

danielcregg/csta-say-hello

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Say Hello

Java License: MIT Last Commit

Note: This repository is a fork of the CSTA Conference example Java assignment originally created by jeffrafter.

Description

A beginner-friendly Java assignment designed for the CSTA (Computer Science Teachers Association) Conference. The project introduces students to basic standard I/O in Java, covering how to print text to stdout and read user input from stdin.

Prerequisites

Getting Started

  1. Clone the repository:

    git clone https://github.com/danielcregg/csta-say-hello.git
    cd csta-say-hello
  2. Compile the Java files:

    javac Hello.java
    javac HelloName.java

Usage

Task 1 -- Hello World

In Hello.java, change the output string so the program prints Hello world! to the console.

Run it with:

java Hello

Task 2 -- Hello Name

In HelloName.java, add code that reads the user's name from standard input and then prints a greeting. For example, if the user enters "Alice", the program should output Hello Alice!.

Run it with:

java HelloName

Project Structure

csta-say-hello/
├── Hello.java      # Basic "Hello world" output exercise
├── HelloName.java  # User input and greeting exercise
├── .gitignore
├── LICENSE
└── README.md

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A beginner Java assignment for the CSTA Conference covering standard I/O with stdin and stdout

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%