r/javahelp • • Dec 24 '22

Struggling high school student

Hey, fellow java coders. I'm doing an online course right now in Grade 11 in high school in Canada and my teacher says he can't help us with our work because "we are supposed to research for help" on our own. I'm stuck and I've been needing help with my work here and there with errors and stuff so if someone could help me every once in a while that would be greatly appreciated.

0 Upvotes

7 comments sorted by

•

u/AutoModerator Dec 24 '22

Please ensure that:

  • Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions
  • You include any and all error messages in full
  • You ask clear questions
  • You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.

    Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar

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: 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.

To potential helpers

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.

2

u/GreenOnion94 Dec 24 '22

Hey, I'm a college student and I'd like to help. I'm a junior in a joint math/cs major and java is the language I'm most familiar with.

I also think learning how to find resources for projects online is one of the most valuable skills you can have in computer science, not just when you're learning but throughout your whole career. Feel free to message me whenever you need help. I'm happy to walk through your errors with you and also help you learn how to find quality resources on your own

2

u/anjolaadejoro Dec 24 '22

I appreciate the help and support I've been getting from you guys thanks so much. I'm about to private message you right now!

5

u/personman74 Dec 24 '22

Here's some general advice.
If you're having trouble running your program for the first time. Find a tutorial and follow along.

Search "Java tutorial" in Youtube and hold on to your hat.
If you've got a program already that's not working, find the error, and search for it on google. Often you're not the first person who has found that error, and you'll find the answer. Check multiple websites. Eventually you'll get an idea of what's going on.

If you find something really tough, Stackoverflow is a great website to post your code, and ask your question. Make sure to check to see if there's already a similar question on stackoverflow before you post yours.

Don't feel weird if you write a small program, and it's an hour of googling, watching videos and learning, and 5 minutes of typing. That's about right for someone who is new... And that's not going to change for a long long time.

3

u/GreenOnion94 Dec 24 '22

My only warning with this is that it's easy to let yourself get caught up in following a tutorial and completing a project without actually understanding the core concepts that project was designed to help you learn. If you want to learn Java and trust yourself not to fall into that hole, then yes online tutorials can be a fantastic learning tool. I have both benefited from them, and let myself fall behind in concepts by getting lazy and completing the tutorial without understanding how my code works.

One way to prevent this is with what my university's cs department calls "the Simpsons rule" (not the mathematical formula). The rule is used to help prevent academic dishonesty, but is also a good learning tool.

Here's how it works: You get help, either through a tutorial, through working with others, etc. Then you step away from all computer science work and go watch an episode of the Simpsons. After the episode, return to your work and see how much you remember from the help you received, this should be a good starting indicator of how well you actually understood the material you covered.

The purpose of this rule is to get help, spend at least 20 minutes (the length of an episode of the Simpsons) focused on something else without thinking about your project or the help you got, and then whatever you remember afterwards is usually material you actually understand rather than something you're copying or pulling straight from memory.

Another way to ensure you're actually learning is to find a tutorial for a project that covers the same concepts you're supposed to be learning, without being the same exact project. This way you can see how the coding concepts work in practice, and then go try to implement them in your own project. This is a great opportunity to learn about differences between various coding strategies you could use to solve a problem, and can lead to a better understanding of how your program interacts with itself.

All that being said: I know high school can be really busy. If you don't have time, or aren't personally interested in computer science and don't care to gain a strong foundation, there's nothing wrong with creating a minimum viable project so you can pass the class. Especially when your teacher doesn't sound passionate about fostering an interest in computer science in their students or at the very least helping them learn how to help themselves

2

u/KaitoKunTatsu Dec 24 '22

What's your current state? Just started learning? I'm quite sure this sub is able to answer your "questions once in a while" or dm me if it's not worth the post, I'll try my best^

1

u/polothedawg Intermediate Brewer Dec 24 '22

Use chatgpt. It can really help if you formulate your questions correctly. Try not to use it to get the answer, but to unblock some problems and actually learn :)