Giter Site home page Giter Site logo

aliceandbob's Introduction

Alice And Bob

Fork this Repository

  • You should work on this project in your own repository.
  • Click the fork button in the top right corner to create a copy of this repository on your github account.
  • You can go through the GitHub forking tutorial if you need additional practice with this.

Alice and Bob Greeting

Objective:

  • Write a program which prompts the user to input his/her name.
  • The program should greet users whose names are 'Alice' and 'Bob'.

Purpose:

  • To establish familiarity with
    • Control Flow
    • Conditionals
    • User input
    • Object instantation/declaration
    • Method invokation

Instructions

  1. Understand how to get input string from user
  2. Create conditional to check against Alice and Bob
  3. Print greeting to screen if Alice or Bob are true
  4. Print "You are neither Alice nor Bob."
  5. When finished, make certain your last commit message is "finished"

Input & Output

Standard input and standard output are important concepts in Java programming.

Standard input is a way for a program to receive input from the user or another program. In Java, standard input is represented by the System.in object. This object can be used with a Scanner object to read input from the user or another program. For example, the following code reads a line of text from the user and stores it in a variable:

Scanner scanner = new Scanner(System.in);
System.out.print("Enter your name: ");
String name = scanner.nextLine();

Standard output is a way for a program to output information to the user or another program. In Java, standard output is represented by the System.out object. This object can be used with the println() method to output text to the console. For example, the following code outputs a greeting to the user:

System.out.println("Hello, " + name + "!");

Standard input and standard output are important concepts in Java programming that allow programs to interact with the user and other programs.

Do the Github thing

When finished, make certain your last commit message is "finished"

aliceandbob's People

Contributors

git-leon avatar kristofer avatar xt0fer avatar dominiqueclarke avatar miscbits avatar

Watchers

James Cloos avatar Tariq Hook avatar Froilan Miranda avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.