Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import ceylon.collection {
- ArrayList,
- MutableList,
- HashSet,
- MutableSet
- }
- import com.google.common.collect {
- Lists,
- Sets
- }
- import java.util {
- JList=List,
- JSet=Set
- }
- shared void run() {
- MutableList<String> myCeylonList = ArrayList<String>();
- myCeylonList.addAll { "hello", "this", "is", "my", "ceylon", "list" };
- JList<String> myJavaList = Lists.newArrayList(*myCeylonList);
- MutableSet<String> myCeylonSet = HashSet<String>();
- myCeylonSet.addAll { "hello", "this", "is", "my", "ceylon", "set" };
- JSet<String> myJavaSet = Sets.newHashSet(*myCeylonSet);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement