Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

String Arbiter

This small piece of Java code allows the transition from Strings to the following types:

  • Integer
  • Double
  • Char

This program takes in a string as a parameter, then based on which method you use, will return that respective type iff the string entered can be converted to be of that type. For example, if a string consisted completely of numbers, StringArbiter would let you directly convert that into a int data type. StringArbiter already includes feedbacks, making implementation much easier.

Please notice the use of static methods, as provided in the tester program.

View the attached MIT License for legal information.

About

Insures that an entered string value is an integer and converts it to an integer, rather than only accept integers and crashing the program when a non-integer value is entered.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages