How to run multiple consoles from one class?

后端 未结 5 830
一个人的身影
一个人的身影 2021-01-25 06:27

I have three classes which all make different works but I need to run them together. When I run all of them in one class I just get one console and cant change this console. Wha

5条回答
  •  孤城傲影
    2021-01-25 06:39

    Obscure question. But it seems that you need separate console outputs for your classes. I don't think it is possible. That is operating system restriction. If operating system supported that you could somehow create additional consoles.

    As a solution you can give your classes PrintStream object which they will use to output data.

提交回复
热议问题