Java Programming Tutorial - 14 - Using Multiple Classes
Why Stack Overflow recommends it
Stack Overflow users link it when beginners ask how to use more than one class in Java, and some newcomers cite it as the series they are following.
Recommended by 1 people across 1 different months, 2011 to 2017.
What it is
Part 14 of thenewboston's beginner Java tutorial series, a roughly six-minute screencast showing how to create a second class and use it from the main class. It is presented in Eclipse using simple example classes and method calls.
What people said
Recommends user6911980 · 2017-12 · Stack Overflow · on “Can I use multi java class in a same file?”
Yes, you can. You should only keep classes that are closely linked in the same file really though. Depending on the purpose of the class, you have to make an `object` and then call the methods of the class via that. Check out classes tutorial [this video]
Cites Michael Schwartz · 2011-07 · Stack Overflow · on “Display Webcam In Java”
I just started Java last week so I'm just getting the fundamentals down at the moment as I have a lot to learn (btw I'm using Eclipse on Ubuntu 11.04 if that helps). However I do a lot of screencasting, and I display my webcam in a lot of the videos that I do. So later on I would like to make a simple app that just displays the webcam. Not anything else. So I'm asking this question now so not only will I remember what my goal is, but also so when I feel I'm ready, and confident to work on this I will know where to go. I don't want any code, but a reference on where to go. I'd like to just use Java. Although one of my co workers told me to look into FMJ, and JMF. However not knowing what thes
Cites joseLapa · 2015-12 · Stack Overflow · on “Multiple classes java”
So i'm awfully new to coding but i quite like it, i'm really young so i have 0 experience on related stuff. I'm watching this [this video] series about java code and in this episode: he creates another class and uses it in the main one but im on intelij(not eclipse as he is) and it gave me two errors saying java couldnt find the symbol (my second class); my code: package com.company; public class Main { public static void main(String[] args) { tuna tunaObject = new tuna(); tunaObject.simpleMessage(null); } Second class: public class tuna{ public void simpleMessage(){ System.out.println("Another class"); } }