# Simple Main Method Question

**URL:** <https://forum.codewithmosh.com/t/simple-main-method-question/4635>\
**Category:** Java\
**Created:** [May 4, 2021, 4:43am UTC](https://forum.codewithmosh.com/t/simple-main-method-question/4635 "2021-05-04T04:43:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mostunexpected](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@mostunexpected](https://forum.codewithmosh.com/u/mostunexpected)\
**Post date:** [May 4, 2021, 4:43am UTC](https://forum.codewithmosh.com/t/simple-main-method-question/4635/1 "2021-05-04T04:43:34Z")

</div>

I’m working on Java Part 3. He keeps creating new classes, adding code, hitting Run, and getting output. I don’t understand how that works. I do the exact same thing, and I get no output. I have to put code in the Main method to get output. Run Main is the only Run option I have. He doesn’t show his Main method, but I downloaded the source code, and his Main method doesn’t implement any methods. I know this is a real noob question.

---

<div class="post-metadata">

**Author:** ![tahir\_074](https://avatars.discourse-cdn.com/v4/letter/t/48db29/32.png) [@tahir\_074](https://forum.codewithmosh.com/u/tahir_074)\
**Post date:** [May 9, 2021, 3:26pm UTC](https://forum.codewithmosh.com/t/simple-main-method-question/4635/2 "2021-05-09T15:26:33Z")

</div>

Can you explain me your doubt along with your code so that I can understan what your doubt is…

---

<div class="post-metadata">

**Author:** ![mostunexpected](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@mostunexpected](https://forum.codewithmosh.com/u/mostunexpected)\
**Post date:** [May 10, 2021, 1:12pm UTC](https://forum.codewithmosh.com/t/simple-main-method-question/4635/3 "2021-05-10T13:12:12Z")

</div>

No. I’m sorry. My code is exactly the same as his from the videos. And currently I am getting output from code entered in classes other than Main. I’m not sure what I was doing wrong before. I’m going to delete this tread, if I can. I appreciate your help.

---

<div class="post-metadata">

**Author:** ![tahir\_074](https://avatars.discourse-cdn.com/v4/letter/t/48db29/32.png) [@tahir\_074](https://forum.codewithmosh.com/u/tahir_074)\
**Post date:** [May 11, 2021, 4:49am UTC](https://forum.codewithmosh.com/t/simple-main-method-question/4635/4 "2021-05-11T04:49:42Z")

</div>

Ok your wish if you want to delete the thread then delete it.
