我如何创建Java接口 [英] How can i create Java Interfaces

查看:161
本文介绍了我如何创建Java接口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想了解如何制作一个Java界面,该界面可以将变量更改为用户输入的内容.
例子将不胜感激.
谢谢

I just wanted to find out how i can make a java interface that would be able to change a variable to what the user has entered.
Examples would be appreciated.
Thanks

推荐答案

如果我正确理解了您的问题,它是编程中最基本的部分之一.

因此,我建议您看一下 [
If I understand your question correctly, it is one of the most basic parts of programming.

Therefore I suggest that you take a look at this[^] and if necessary go back to the beginning of that tutorial set and start following the examples.

If I have misinterpreted your question, I apologize.


您的第一个问题是,您可能没有意识到接口"一词的许多不同含义,这就是为什么您无法执行什么操作到底是什么意思.

无论您打算做什么,都需要熟悉该术语下暗含的大多数概念.请参阅
http://en.wikipedia.org/wiki/Interface_(computing) [ ^ ].

对于Java接口,请参见: http://download.oracle.com/javase/tutorial/java /concepts/interface.html [ ^ ](以及本文档的参考);有关Java接口的资料,请参见 http://en.wikipedia.org/wiki/Interface_(Java) [ ^ ],例如,即: http://download.oracle.com/javase/tutorial/java/concepts/interface .html [ ^ ](更多的面条).

—SA
Your first problem is that you probably unaware of many different meanings of the term "interface", that''s why you fail to conduct what exactly do you mean.

Whatever you purpose is, you need to get familiar with most of the concepts implied under the term. Please see http://en.wikipedia.org/wiki/Interface_(computing)[^].

For Java interfaces, see this: http://download.oracle.com/javase/tutorial/java/concepts/interface.html[^] (and reference from this document); for Java interfaces, there a re many sources, see http://en.wikipedia.org/wiki/Interface_(Java)[^], and, for example, this: http://download.oracle.com/javase/tutorial/java/concepts/interface.html[^] (Goodle for more).

—SA


这篇关于我如何创建Java接口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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