Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/itssodope01/java-generics

Generic Class that adds two numbers of different data types, performs bubble sorting for an array, whose elements extend Comparable class.
https://github.com/itssodope01/java-generics

Last synced: 6 days ago
JSON representation

Generic Class that adds two numbers of different data types, performs bubble sorting for an array, whose elements extend Comparable class.

Awesome Lists containing this project

README

        

# Java-Generics
Generic Class that adds two numbers of different data types, performs bubble sorting for an array, whose elements extend Comparable class.

3--> my own fancy compare method. This method
compares the String data types taking into account the total number of characters;
Integer data types taking into account the total number of non-zero digits, and
Double data types taking into the significand (the mantissa) of the number.

4--> Using Upper Bounded Wildcard to sum all elements of the list of elements, which extends Number
class.