Skip to content

JagjeetSingh1313/java-integer-sum-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Sum of Integers Using Autoboxing and Unboxing

Objective

This Java program demonstrates the use of autoboxing and unboxing to calculate the sum of a list of integers. It also shows how to parse string inputs into integer values using Integer.parseInt().

Key Concepts Demonstrated

  • Autoboxing: Automatically converting primitive int values into Integer objects
  • Unboxing: Converting Integer objects back to primitive int
  • String Parsing: Using Integer.parseInt() to convert user input from strings to integers

How to Run

  1. Compile the program: javac IntegerSumCalculator.java
  2. Run the program: java IntegerSumCalculator
  3. Enter integers separated by spaces when prompted
  4. The program will display the sum of all valid integers entered

Example

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages