How to send an OBJECT over TCP in java?

前端 未结 3 1748
耶瑟儿~
耶瑟儿~ 2020-12-12 03:45

I\'m writing a program to send an object from one class to another class. Here is a short sample example of my program to represent the problem. As you can

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-12 04:24

    You are referencing two different classes. Student which is an inner of ClientSide and Student which is an inner class of ServerSide. You should move the Student class to a different file.

提交回复
热议问题