Kyle-Pu / Mathematics

Various math formulas coded in Java to help students all across the world!
MIT License
40 stars 59 forks source link

Restart in the Slope of a Line Program #23

Closed Kyle-Pu closed 6 years ago

Kyle-Pu commented 6 years ago

If the user enters an incorrect data type in the slope of a line calculation program, the program displays a warning message and restarts the program using the following code:

//Automatically restarts the program
 String[] a = new String[1];
 main(a);

Please create a better way to restart the program.