My Program stops

Do you have a compilation error or a difficult problem to solve? Ask for help here
Post Reply
Maxerdude
Posts: 1
Joined: Wed Apr 17, 2019 7:13 pm

My Program stops

Post by Maxerdude » Wed Apr 17, 2019 7:17 pm

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) {

jpconver
Site Admin
Posts: 10
Joined: Fri Dec 01, 2017 2:09 pm

Re: My Program stops

Post by jpconver » Thu Apr 18, 2019 11:55 pm

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!

Post Reply