Page 1 of 1

My Program stops

Posted: Wed Apr 17, 2019 7:17 pm
by Maxerdude
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) {

Re: My Program stops

Posted: Thu Apr 18, 2019 11:55 pm
by jpconver
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!