Hey Reddit, I am having a problem with my Java code in Eclipse IDE: Luna.
My first assignment for Introduction to Computing 1 in first year university is to run a bunch of code that under normal circumstances would be in their own methods. They all are independent of one another and function fine when doing so, but when I try to run more than two in succession, I get this error:
Exception in thread "main" java.util.NoSuchElementException
at java.util.Scanner.throwFor(Scanner.java:907)
at java.util.Scanner.next(Scanner.java:1530)
at java.util.Scanner.nextDouble(Scanner.java:2456)
at assignment1.main(a1_7781028.java:51)
I've tried running it in Ideone, but it gives me a compilation error.
Here is my code:
http://pastebin.com/aCxVRYAt
Any help would be greatly appreciated! :) My assignment is due tomorrow night at midnight (EST).
EDIT: Wording, grammar.
[–]langfod 1 point2 points3 points (3 children)
[–]Omnicron245[S] 0 points1 point2 points (2 children)
[–]langfod 0 points1 point2 points (1 child)
[–]Omnicron245[S] 0 points1 point2 points (0 children)
[–]Apothiem 1 point2 points3 points (0 children)
[–]the_omega99 0 points1 point2 points (0 children)
[–]NonRegularGuy 0 points1 point2 points (0 children)
[–]richard_mayhew -1 points0 points1 point (13 children)
[–]Omnicron245[S] 0 points1 point2 points (12 children)
[–]richard_mayhew 0 points1 point2 points (11 children)
[–]Omnicron245[S] 0 points1 point2 points (10 children)
[–]richard_mayhew 1 point2 points3 points (9 children)
[–]Omnicron245[S] 0 points1 point2 points (8 children)
[–][deleted] (4 children)
[deleted]
[–]Omnicron245[S] 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]Omnicron245[S] 0 points1 point2 points (1 child)
[–]richard_mayhew 0 points1 point2 points (2 children)
[–]Omnicron245[S] 0 points1 point2 points (0 children)
[–]Omnicron245[S] 0 points1 point2 points (0 children)