Help a Java newbie

Status
This thread has been locked.

Larjd

Supreme
Feedback score
11
Posts
429
Reactions
199
Resources
0
Hello! I got into Java developing about 2-3 months ago but didn't dig too deep into it. I know the very basics and I would like to ask Java devs what's the best free online course you could suggest me.
I have already seen a lot of thenewboston's Java tutorials and some of Pogo's bukkit tutorials.
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Larjd

Supreme
Feedback score
11
Posts
429
Reactions
199
Resources
0
You can use online courses, Udemy has some good ones but it isn't free.

My advice is to teach yourself core java and learn the logic behind programming. Teach yourself on algorithms and pseudo code, these will help you grasp programming.

Another option is to buy a book. They're really helpful and detailed, honestly I think the best way to learn is through them. However others might think different. It's just my opinion :)

Good luck and I hope you find a love for programming :D
Thanks! I am currently taking Codeacademy's Java program aswell as watching thenewboston's videos for easier understanding.
 

Synapz

Feedback score
0
Posts
9
Reactions
9
Resources
0
Thanks! I am currently taking Codeacademy's Java program aswell as watching thenewboston's videos for easier understanding.
I was in that position for a few months in the beginning. I did courses and watched YouTube playlists but nothing really teached me. It is more like System.out.println() prints text to the next line! Without really explaining what it is.

To really understand everything you want to know what System is what .out is and what is a println(). And how it all works together. Courses I took did not really explain what things do and how t works together to work, but just what it did.

So I bought Head First Java and that is the best thing for me really. People will recommend different courses and books, each saying they swear it is the best way to learn. Really you have to find your way you like. You said you tried a lot of thenewboston videos however you say you still don't know is a lot. Maybe try a book. There is a free PDF here for Head First Java, try the first few chapters to see if maybe books help you like they helped me for it:
https://www.ticket.mn/files/tmp/Head-First-Java-2nd-edition.pdf
 

Larjd

Supreme
Feedback score
11
Posts
429
Reactions
199
Resources
0
I was in that position for a few months in the beginning. I did courses and watched YouTube playlists but nothing really teached me. It is more like System.out.println() prints text to the next line! Without really explaining what it is.

To really understand everything you want to know what System is what .out is and what is a println(). And how it all works together. Courses I took did not really explain what things do and how t works together to work, but just what it did.

So I bought Head First Java and that is the best thing for me really. People will recommend different courses and books, each saying they swear it is the best way to learn. Really you have to find your way you like. You said you tried a lot of thenewboston videos however you say you still don't know is a lot. Maybe try a book. There is a free PDF here for Head First Java, try the first few chapters to see if maybe books help you like they helped me for it:
https://www.ticket.mn/files/tmp/Head-First-Java-2nd-edition.pdf
Yeah, I just finished Codecademy's Java course and I have to say I thought it wouldn't be as brief as it it, It literally took me around 4-5 hours to complete it.
I always try to search up every word I don't understand like "this.", "%", etcetera.
I tried to make a fly boots plugin for my first one, I didn't turn out too good and that's one of the reasons I "quitted" Java for a while.
Here some screens of the code :
https://gyazo.com/ebcfbda730fe3b06bf4f01138d409f6f
https://gyazo.com/4fbd42bddf2de832253a6e22d9945a1f
https://gyazo.com/70725204bff380d40ec329a0856899ff
 

Skionz

ogminecraft.com
Premium
Feedback score
1
Posts
1,544
Reactions
1,527
Resources
0
Hello! I got into Java developing about 2-3 months ago but didn't dig too deep into it. I know the very basics and I would like to ask Java devs what's the best free online course you could suggest me.
I have already seen a lot of thenewboston's Java tutorials and some of Pogo's bukkit tutorials.
Stay away from thenewboston and pogo's videos. You shouldn't even be touching Bukkit at this point.
 

Larjd

Supreme
Feedback score
11
Posts
429
Reactions
199
Resources
0
Stay away from thenewboston and pogo's videos. You shouldn't even be touching Bukkit at this point.
Yeah, I'm currently reading Head First Java and watching thenewboston's Java tutorials for complementation.
I know the basic concepts though, such as private, public, if, switch, else, else if, Arrays, etc. I understand a lot of code but when you give me a blank page I don't know where to start or what to type.
 

Skionz

ogminecraft.com
Premium
Feedback score
1
Posts
1,544
Reactions
1,527
Resources
0
Yeah, I'm currently reading Head First Java and watching thenewboston's Java tutorials for complementation.
I know the basic concepts though, such as private, public, if, switch, else, else if, Arrays, etc. I understand a lot of code but when you give me a blank page I don't know where to start or what to type.
Don't watch thenewboston. His videos are awful and he teaches terrible practices.
 

Larjd

Supreme
Feedback score
11
Posts
429
Reactions
199
Resources
0
Don't watch thenewboston. His videos are awful and he teaches terrible practices.
Is there any YouTube video series you would recommend me?
I already watched all 87 beginner tutorials, and around 40 of his intermediate ones. I've learnt most of what I know about Java from him.
I'm also watching Derek Bana's video tutorials.
I took a code from one of his tutorials and "upgraded" it, what do you think, better or not?

Code:
import java.awt.BorderLayout;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.SwingConstants;

public class Gui extends JFrame {
    private String details;
    private JLabel statusbar;

    public Gui () {
        super("Click Counter");
    
        statusbar = new JLabel ("Start clicking!");
        add(statusbar, BorderLayout.SOUTH);
        addMouseListener ((MouseListener) new Mouseclass());
    }

    private class Mouseclass extends MouseAdapter {
        public void mouseClicked(MouseEvent event) {
            details = String.format("You clicked %d %s ", event.getClickCount(), "times");
        
            if(event.isMetaDown())
                details += "with the right mouse button";
            else if(event.isAltDown())
                details += "with the center mouse button";
            else
                details += "with the left mouse button";
        
            statusbar.setText(details);
    
        }
    }
}
There also was another class with the setSize, setLocation etc but I deleted it.

Code:
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.SwingConstants;

public class Gui extends JFrame {
    private String details;
    private JLabel statusbar;

    public static void main(String[] args){
        new Gui();
    }

    public Gui () {
    
        this.setTitle("Click Counter");
        this.setSize(400, 300);
        Toolkit tk = Toolkit.getDefaultToolkit();
        Dimension dim = tk.getScreenSize();
        int xPos = (dim.width / 2) - (this.getWidth() / 2);
        int yPos = (dim.height / 2) - (this.getHeight() / 2);
        this.setLocation(xPos, yPos);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);
    
        statusbar = new JLabel ("Start clicking!", SwingConstants.CENTER);
        add(statusbar, BorderLayout.SOUTH);
        addMouseListener ((MouseListener) new Mouseclass());
        }

    private class Mouseclass extends MouseAdapter {
        public void mouseClicked(MouseEvent event) {
            details = String.format("You clicked %d %s ", event.getClickCount(), (event.getClickCount() != 1)? "times" : "time");
        
            if(event.isMetaDown())
                details += "with the right mouse button";
            else if(event.isAltDown())
                details += "with the center mouse button";
            else
                details += "with the left mouse button";
        
            statusbar.setText(details);
    
        }
    }
}
 

Leon

Premium
Feedback score
3
Posts
603
Reactions
160
Resources
0
Stay away from thenewboston and pogo's videos. You shouldn't even be touching Bukkit at this point.

I wouldn't say this, I don't have much knowledge in java yet I am learning the bukkit API and I am learning java from it, You need to understand that people don't want to have to learn java for months and months just to make some plugins for a game they love, they want to start and embrace it.

I have had a tonne of fun learning java and bukkit together and have been making some small but still awesome plugins!
 

Skionz

ogminecraft.com
Premium
Feedback score
1
Posts
1,544
Reactions
1,527
Resources
0
I wouldn't say this, I don't have much knowledge in java yet I am learning the bukkit API and I am learning java from it, You need to understand that people don't want to have to learn java for months and months just to make some plugins for a game they love, they want to start and embrace it.

I have had a tonne of fun learning java and bukkit together and have been making some small but still awesome plugins!
You don't have to spend months learning Java to make plugins, but you do if you want to make quality plugins and not become a joke in the development community. Bukkit will not teach you basic core principles that you need to know such as encapsulation, polymorphism, class design, etc.
 

Leon

Premium
Feedback score
3
Posts
603
Reactions
160
Resources
0
You don't have to spend months learning Java to make plugins, but you do if you want to make quality plugins and not become a joke in the development community. Bukkit will not teach you basic core principles that you need to know such as encapsulation, polymorphism, class design, etc.

Your statement is somewhat true, but what's to stop people making plugins for fun well learning java.
 
Status
This thread has been locked.
Top