简体   繁体   English

我们可以在java中创建自己的System类吗?

[英]can we create our own System class in java , if yes then how?

public void MySystem class{
    //here  MySystem is my own System class in place of System class which available in java.lang package //
}

Yes, you can. 是的你可以。 Just write the necessary code and you're good to go. 只需编写必要的代码,您就可以轻松进行。 It's the same as with any other class. 与其他任何类相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM