+ 1
How do I use import statement and packages in the code playground?
Packages
3 Respostas
+ 13
You use imports like you are supposed to do in Java. But code playground doesn't support every package. E.g. gui apis cannot be imported/run.
Example (all classes of utility package):
import java.util.*;
+ 12
Unfortunately not. You can write different classes, but all in one file -.- When you run your code in code playground it is actually sent to the SoloLearn servers, executed there and the output is sent back. So you don't have a chance to import your own packages/classes.
+ 1
Thank you Tashi. Can I create my own package on playground ?