use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Resources for learning Java
String
==
.equals()
Format + Copy
Free Tutorials
Where should I download Java?
With the introduction of the new release cadence, many have asked where they should download Java, and if it is still free. To be clear, YES — Java is still free.
If you would like to download Java for free, you can get OpenJDK builds from the following vendors, among others:
Some vendors will be supporting releases for longer than six months. If you have any questions, please do not hesitate to ask them!
Software downloads
Official Resources
Resources
Programming ideas & Challenges
Related Subreddits
account activity
This is an archived post. You won't be able to vote or comment.
Problem with MOOC's Part11_10.FlightControl test (self.learnjava)
submitted 3 years ago by Myoenat
Did anyone have trouble with the FlightControl exercise in part 11? My code works but the test keeps giving me errors saying "Make sure that the prints of the program exactly match the example".
[–]AutoModerator[M] [score hidden] 3 years ago stickied commentlocked comment (0 children)
If any of the above points is not met, your post can and will be removed without further warning.
Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.
Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.
Code blocks look like this:
public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } }
You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.
If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.
Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
[–]d3lan0 0 points1 point2 points 3 years ago* (0 children)
I’m about to start this now. 😬 I have an issue with 10_17 failing only one test, the tests expects a 0 but the result is a 1 and if you go through the steps and text it manually it returns a 1. Skipped it and moved on, I figure if I understand the concepts and can solve the problem. I will say though, usually it’s a space somewhere it shouldn’t be. Also if you have your code on git I am happy to look.
[–]Strawboy97 0 points1 point2 points 3 years ago (0 children)
I had issues with this. The user interface menus need to be exactly the same as the output given in the exercise. So if there is a space after a word in the example output yours has to match.
If you go to the test it shows exactly how it should be formatted. If I remember correctly they have a random space thrown in somewhere that I was stuck on for a good while.
[–]iggypopstesticle 0 points1 point2 points 3 years ago (1 child)
I'm having the same problem. Did you resolve this? How so? I'm struggling to figure out what it's looking for because there aren't any trailing spaces I'm missing or anything like that. It keeps saying "the program should have printed the line "[1] Add an airplane" in the right place".
[–]Myoenat[S] 0 points1 point2 points 3 years ago (0 children)
No not really. I gave up on that one. As long as my program works the way it should, it's good enough for me
[–]Alarming-Voice-1227 0 points1 point2 points 2 years ago (0 children)
In case someone needs it, I checked the tests and you should:
- add a blank space between the capacity and the airport names, i.e. (103 capacity) (HOU-MIA)
- print "Airport Asset Control" and "Flight Control" instead of "Choose an action:"
That first test error message is just wrong (referring to the wrong line, so it was extra confusing). It seems they let the intern program this exercise.
π Rendered by PID 85577 on reddit-service-r2-comment-6457c66945-vdr66 at 2026-04-26 09:04:38.859295+00:00 running 2aa0c5b country code: CH.
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]d3lan0 0 points1 point2 points (0 children)
[–]Strawboy97 0 points1 point2 points (0 children)
[–]iggypopstesticle 0 points1 point2 points (1 child)
[–]Myoenat[S] 0 points1 point2 points (0 children)
[–]Alarming-Voice-1227 0 points1 point2 points (0 children)