Skip to content

OpenGenus/stopwatch-in-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Stopwatch Console Application in Java

A simple stopwatch program in Java that allows the user to start, pause, resume, and stop a stopwatch.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You need to have the following software installed on your system:

  • Java (1.8 or later)

Installing

Clone : git clone https://github.com/OpenGenus/stopwatch-in-java.git

or download the repository (zip file) to your local machine.

Running

Compile the java code using the following command:

javac stopwatch.java

Run the code using the following command:

java stopwatch

Using the Stopwatch

  1. Start the stopwatch by pressing S when prompted.
  2. Pause the stopwatch by pressing P.
  3. Resume the stopwatch by pressing R.
  4. Stop the stopwatch by pressing Enter.
  5. Quit the program by pressing Q when prompted.

For a more detailed explanation, see the link.

About

Stopwatch Console Application developed in Java

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors 2

  •  
  •  

Languages