我知道T是List<string>(或List<MyClass>)。如何查看反射或讓我返回此列表的字符串? public T Deserialize<T>(string response)
{
//just example
string[] words = response.Split(' ');
List<string> wordsList = words.ToL
我有兩個應用程序通過RMI,一個從屬服務器(其中將有多個)和一個主服務器進行通信。 遵循好的抽象設計,我想以一種不知道與主人交談時使用RMI的方式實現從屬(這樣兩個應用程序也可以在同一個JVM中運行) ,例如): public static void main(String[] a) {
Master ms = magicGetTheMasterFromRMI();
new S