Very simple Java Dynamic Casting

后端 未结 3 681
慢半拍i
慢半拍i 2021-01-18 16:03

Simple question but I have spent over an hour with this. My code is below. I need to make SomeClass sc dynamic. So you pass the class name as a string in a function and use

3条回答
提交回复
热议问题