Here is a snippet my code. It stops at some random point and i have no idea why. No error comes up it just says the code has been finished. The code:
case "Side":
//The length of the Side
System.out.println("Input the length of your side.");
double sideA = sc.nextDouble();
//The value of the angle
System.out.println("Now the value of the angle.");
double angleA = sc.nextDouble();
//The Relation to the angle
System.out.println("What is your side in relation to the angle? ex. 'Opposite'");
//My code stops here and idk why
String typeSideB = sc.nextLine();
switch (typeSideB) {
My Program stops
Re: My Program stops
Hi
Please generate a link to the code to see it complete (right click on the project / GetUrl. Then paste the generated URL here
Thanks!
Please generate a link to the code to see it complete (right click on the project / GetUrl. Then paste the generated URL here
Thanks!