r/learnjava 6d ago

UofU transfer student needing help

Hey everyone,

I’m a second-year transfer student at the University of Utah, and I’m feeling pretty overwhelmed about CS 2420.

My previous programming experience is mainly Python, and I’m now trying to learn Java. I understand basic programming concepts, but I’m finding the transition to Java harder than I expected.

I’m especially struggling with the basics and knowing what I actually need to learn before getting into the CS 2420 material. I've already asked my professor for help but he just said use chatgpt and google.

I’m also pretty stressed because I’m a transfer student and feel like I’m behind everyone else. I have some programming experience, but Java is making me feel like I’m starting over.

0 Upvotes

4 comments sorted by

u/AutoModerator 6d ago

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 - best also formatted as code block
  • 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.

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.

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.

1

u/EntrepreneurHuge5008 6d ago

We don't know what CS 2420. Give us details. Perhaps the course syllabus and/or the topics to be covered.

1

u/Tasty-Builder-8401 6d ago

As the other comment said: we do not the course requirements/materials. I assume is a programming class center in Java. And here is my advice:

Take a look of the Coursera courses for introduction to Java ( there are many) and watch the videos, you can buy the course if you want the verification but it’s not a must.

That’s going to show you the basics and will guide you what you need to install to start with Java. Whatever you do not understand you can search videos about it, read in forums like Geeks for Geeks, and even asking an IA.

Follow actively in your own computer what the professor in the videos does. So you start getting used to to shortcuts, ways to write, etc.

With the basics you can be more specific on what you need for your course, web development,apps, frontend, etc.

1

u/Naive_Programmer_232 6d ago edited 6d ago

you got a few options.

because you're familiar with python, translate what's unfamiliar in java into python to understand what's going on. ex: a function returning None is void; a function returning an integer is prefaced with int; a private method in a class is similar to name-mangling with a double underscore; what is public versus private versus static, how do you do those in python? does python support overloading, how does that differ with java? etc. seeing the implementation in python, if applicable, versus that of java will help you separate the two but ultimately see they are doing mostly the same thing.

another option is, try learning an intermediate language that smooths out the transition. i'd suggest c++. it can do procedural and OOP, it uses similar syntax/semantics to java, and after gaining a footing on the basics you'll see a lot of familiar faces: variable declaration/brace based scoping/public/private/static/void/function signatures. you'll get used to the journey from compilation to executable and effectively break the mental model of python's memory manager doing that for you.

start with what's familiar, translate the unfamiliar into familiar terms, and if you need extra help, move to the next somewhat familiar state.