我有FileWriteReadHelper类。并希望在MyService服务中使用它。 我试过了
FileWriteReadHelper writer = FileWriteReadHelper();
但FileWriteReadHelper带有消息下划线:
The method FileWriteReadHelper() is undefined for the type MyService
有任何想法吗?
答案 0 :(得分:1)
替换为:
FileWriteReadHelper writer = new FileWriteReadHelper(); // <-------- new added