Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6818623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:12:07+00:00 2026-05-26T21:12:07+00:00

I want to practice MVC with java but at the first I want to

  • 0

I want to practice MVC with java but at the first I want to create a simple console app and separate it into MVC I know I can separate MODEL from console(view + controller) but how can I separate view and controller in this situation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:12:08+00:00Added an answer on May 26, 2026 at 9:12 pm

    Well you can mimic that behavior by having a class that handles user console input (controller) and another class that deals with rendering the model on the console output (view).

    It’s not really what MVC is for, but if you really want to do it…

    Edit: Ok, I’m going to give you some concrete ideas about the controller. You know that in a GUI app, you have the so-called “message loop”. You will need to mimic this in your console app. Try to start a parallel thread that receives console input in an infinite loop. When input is received, call a handler method from the controller class.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know how to write program in PHP and implementation of MVC model. but
I want to build an MVC app using Spring (first timer here). As such
I want to know what the best practice is for passing values (sometimes multiple
I've recently learned core Java and want to develop my skills further with practice
I'm learning to do TDD in practice in small project. I want to create
I am a newbie in asp.net MVC. I want to create a plain c#
i like the .NET MVC practice of getting an instantiated class model passed to
I'm writing an MVC app where I want the URL's to be SEO friendly
I'm new to ASP.net MVC and I want to use a view but with
I want to know the best practice of configuring Spring XML configuration files 1-

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.