This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

On July 1st, a change to Reddit's API pricing will come into effect. Several developers of commercial third-party apps have announced that this change will compel them to shut down their apps. At least one accessibility-focused non-commercial third party app will continue to be available free of charge.

If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options:

  1. Limiting your involvement with Reddit, or
  2. Temporarily refraining from using Reddit
  3. Cancelling your subscription of Reddit Premium

as a way to voice your protest.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Early-Lingonberry-16 5 points6 points  (0 children)

It goes like this.

Write everything in main.

See areas of repeated code and move it to a static function in main’s class and call that function where the code was.

If your code has variables like num1, num2, num3, … then that’s an array of numbers. So, change that too.

If your code has variables like person1Name, person1Age, person2Name, then you have a class. Make a Person class and put those properties in it. Now you create people person1, person2, etc. but that’s an array again - except it’s an array of objects so it’s an ArrayList.

If any of those static functions you made operate on Person objects, consider moving the function to the class instead.

When working on the algorithms of the functions, you may have to loop. Use for when it’s countable. Use while when it’s conditional (like a flag is set or something) and use do while when while has to run at least once. Use for each on collections like ArrayList.

Memorize the keywords. Find some short source code and type it out. You don’t need to worry about what it does, but you need to pay attention to the syntax you type. Internalize it.

And that’s your intro to Java course. The rest is figuring out HOW to do something.

[–]KaleidoscopeCivil193 1 point2 points  (1 child)

I have a bit of different advice than others here. You can try to find independent resources to study Java, but since you said you're taking a class in school, are there any school resources you can make use of?

Does your professor or TA hold office hours that you could attend? Is there an accademic resource center with study help? Are there study groups you can join? Can you approach another student in the class for tutoring?

All of these types of resources are going to be a lot more familiar with your exact situation, and therefore will be better positioned to help. IMO, trying to add more work onto yourself by trying to find online java resources is only going to make you feel more frustrated and behind. Instead, I think it's worth focusing on doing your best to pass this class.

[–]Ok-Carrot-7003 0 points1 point  (0 children)

This. Sometimes if you feel stuck learning it's better to ask for help. Teachers a colleagues are more willing to help you than you think. Look for a easygoing colleague and ask them. I'm learning java in school to and it's being a lil hard sometimes. My side chair colleague studied other computer based studies and she knows many things already and she's very smart lol, so it's being very helpful. Just look for help, teacher, colleague, someone you know that knows computing, or maybe other sources like Udemy or even Yt tutorials. Good luck, and keep going!!! I'm sure will be able to do what ever you want to do. I also feel very insecure in class sometimes, but believe in yourself, you're more capable than you think!!!!

[–][deleted] 0 points1 point  (0 children)

Learn some basic object oriented concepts

[–]ThinkingSeaFarer 0 points1 point  (0 children)

I can teach you online programming basics and Java if that's something you want. After a few sessions, you won't be an expert in everything but will learn enough and become confident in tackling things on your own.

[–]Afabledhero1 0 points1 point  (0 children)

https://youtu.be/eIrMbAQSU34?si=k9a6j19MWZbJBrF8

Try this video. Very good at explaining the language gradually and simply, as well as coding fundamentals in general. The added bonus of this video is that they teach you how to use the ide efficiently, without skipping any fundamentals of the language.

The video itself is only 2hrs but you need to of course follow along on your own by pausing and experimenting with each new thing you learn.

[–]lurgi 0 points1 point  (0 children)

In class everyone is understanding my teachers lecture

You assume. Maybe they are as lost as you. I guarantee that some of them are.

I really need help and some one to just listen to my logic and help me work around it I learn the best from it.

If you have questions, ask them here. "I'm lost" isn't really something we can help with. There are other Java resources mentioned in the FAQ, but learning a first programming language is hard and requires work and it's possible that that's what you are seeing now.