Java Exercise - Creating Classes & Methods

preview_player
Показать описание
Java Programming: Creating Classes and Methods in Java
Topics discussed:
1. Creating the main class in Java.
2. Creating methods in Java.
3. Calling the methods inside the main class.
4. Compiling and executing the Java program using CMD.

Music:
Axol x Alex Skrindo - You [NCS Release]

#JavaByNeso #JavaProgramming #MainClass #MethodsInJava
Рекомендации по теме
Комментарии
Автор

So, you are telling me you are 21? respect..

djolic
Автор

Waiting for python programming course great work educating people...

rakeshranjan
Автор

are u really just 21? if thats true its dope!

kostavsheoran
Автор

Owesome sir, thanks for giving this unique information..

pramodsitaprao
Автор

To effectively use Java to solve problems by creating classes and methods in different stages, you can follow these steps:

1. Identify the problem you need to solve.
2. Break down the problem into smaller tasks.
3. Create classes to represent different components of the problem.
4. Define methods within the classes to perform specific tasks.
5. Implement the logic in the methods to solve the smaller tasks.
6. Test and debug your code to ensure it works correctly.
7. Refactor and optimize your code as needed.
8. Repeat the process for each stage of the problem-solving process.

By following these steps and utilizing Java's classes and methods effectively, you can efficiently solve problems and improve your programming skills.

zuftywe
Автор

You're not good! You're brilliant!!!

computationalbadass
Автор

Great video! You should've explained that we can call a method without using an object, just calling a method with using a class name. I had to do a lot of research to understand it lol. Anyway can you go in details about terminal commands?

ckal
Автор

you're so good thank you very much

kxyrie
Автор

In case of file note found
Make sure the file extension is java by
Checking file extension ( go to view -> file extension, ) then correct it.

This happened in my case.

RohitKumar-zpci
Автор

ما شاء الله لا قوة إلا بالله. جزاك الله خيرا

mcuvijx
Автор

I'm gonna share it as much as i can

milansood
Автор

Thank you so much sir this course is very very useful and understand each and every topic

akashmapari
Автор

How do I create a class without main method in IDE

mdtabish
Автор

I have one doubt cant we use the Me class in the same Main.java page can anyone clarify me

saicharan
Автор

The cmd doesn't compiling it plz help

gammersunity
Автор

this turos are very useful. however writing and compiling through notebad and cmd is very long and confusing. in my openion using intellij is much easier and better to understand

IMOVERVIEW
Автор

sir I am facing a problem when I create a new class within main class and than I run it work properly when I make changes for example in me class these changes not become in main class. like when I add some stars and some other symbols within they can't execute in main

Jamalsabawoon
Автор

Assalamualaikum sir I want to know about switch statement and programing

syedamahnoor
Автор

do you to make tutorial for creating classes & methods using jdoodle? as im beginner and currently using jdoodle.

njwamhmd
Автор

In IntelliJ all goes well and I have no problem.
However in the prompt line, even though I've done exactly like you, it seems that the Main class can not see the Me class. I get this:

D:\PS\JAVA\Exercise>javac Main.java
Main.java:4: error: cannot find symbol
Me.sayName();
^
symbol: variable Me
location: class Main
Main.java:5: error: cannot find symbol
Me.sayAge();
^
symbol: variable Me
location: class Main
2 errors



Any clue on why is not working ? Thx

justpaulo