문제

According to this I should be able to have multiple import statements like this:

import class1, class2, class3, class4

Class MyApp.MyClass {}

The code compiles with one import, but as soon as I place more than one the code fails to compile.

What is the correct syntax?

도움이 되었습니까?

해결책

I can't find it in the documentation, but

import (class1, class2, class3, class4)

Class MyApp.MyClass {}

seems to work.

다른 팁

documentation
more than one package, you need to take in brackets

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top