为什么Java不支持的功能类似于C clrscr? [英] Why Java doesn't support function like clrscr in C?

查看:136
本文介绍了为什么Java不支持的功能类似于C clrscr?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这听起来愚蠢到许多问题,但我不能停下来在这里发布在互联网上发现什么也没有。

I had a question that may sound dumb to many, but I can't stop to post it here as found nothing there on the Internet.

为什么Java没有的功能clrscr排序,我们用C使用?

Why does java doesn't have clrscr sort of function that we use in C?

如果我创建了一个迭代遍地根据用户的输入,然后如果我想给用户提供一个选项,以清除屏幕,那么为什么它在java中不支持。

If I created a java concole application that iterates over and over based on user input and then if I want to provide the user an option to clear the screen, then why its not supported in java.

我知道有一些方法这样并的this

I know there are some ways like this and this.

它说的是与Java是面向对象(我很怀疑,但没有一个具体的答案)。

Is it something related to Java being OOP (I highly doubt but don't have a concrete answer).

推荐答案

OOP无关,用它做。它更clrscr更了Java比Java本身运行环境中的功能,所以它不是在Java的范围

OOP has nothing to do with it. It's more clrscr is more a function of the environment the Java is running in than Java itself, and so it is not in Java's scope.

或者换一种说法:因为Java是跨平台的,可以不带控制台运行,clrscr的意义具有取决于应用程序是如何运行,什么平台上修改

Or to put it another way: since Java is cross platform and can be run without a console, the meaning of clrscr has to change depending on how the app is run and on what platform.

这篇关于为什么Java不支持的功能类似于C clrscr?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆