简体   繁体   English

Java文件之间的通信

[英]Communication Between Java Files

I want to be able to run a file that is on a different network, then run a file on my network and be able to communicate through them.我希望能够运行不同网络上的文件,然后在我的网络上运行文件并能够通过它们进行通信。 For example: (on my file)例如:(在我的文件上)

println_to_other_file("Hello World!")

and then this appears on the console of the other file on the different network:然后这出现在不同网络上另一个文件的控制台上:

New Message: Hello World!

So my problem is that i dont know where to start with this issue.所以我的问题是我不知道从哪里开始这个问题。 Any help would be greatly appreciated.任何帮助将不胜感激。 Thanks!谢谢!

So my problem is that i dont know where to start with this issue.所以我的问题是我不知道从哪里开始这个问题。

You should start at docs.oracle.com/javase/tutorial/networking/overview/networking.html您应该从docs.oracle.com/javase/tutorial/networking/overview/networking.html开始

I'm not too much of an expert in this area, but I would suggest starting off with networking and the use of client and server systems.我不是这方面的专家,但我建议从网络以及客户端和服务器系统的使用开始。

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

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