Using the Integer class here is probably what you want to do. The overhead associated with the object is most likely (though not necessarily) trivial to your applications overall responsiveness and performance.
More Related Contents:
- Should Java 8 getters return optional type?
- Hangman java coding
- How do I determine whether an array contains a particular value in Java?
- What is a daemon thread in Java?
- Java date format conversion – getting wrong month
- What’s the syntax for mod in java
- Java – when to use ‘this’ keyword [duplicate]
- How do I trim a file extension from a String in Java?
- Why does GSON use fields and not getters/setters?
- Method to dynamically load java class files
- Discord JDA – Invalid Member List
- Finding largest prime number out of 600851475143?
- How to see JavaDoc in IntelliJ IDEA? [duplicate]
- String.equals() argument ordering
- Size of Huge Objects directly allocated to Old Generation
- Java: Multi-dimensional array vs. one-dimensional
- How do I make 2 comparable methods in only one class?
- Can Java Sound be used to control the system volume?
- How should I call a Perl Script in Java?
- Listing files in a directory matching a pattern in Java [duplicate]
- IR emitter and Android 5.0
- Character class subtraction, converting from Java syntax to RegexBuddy
- Java Best Practice for Date Manipulation/Storage for Geographically Diverse Users
- Advanced Wildcard Mappings Parameters not found in Prepare() method
- HTTP 500 Internal Server Error in simple REST based program. Confused in GET and POST while receiving/sending response from server
- Failed to resolve: com.google.android.gms:play-services in IntelliJ Idea with gradle
- Automapper for Java [closed]
- Why new keyword not needed for String
- Fastest way to parse a date in Basic ISO 8601 format, using Java [closed]
- Does JPA support mapping to sql views?