Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -4,7 +4,7 @@ import scala.collection.immutable.HashSet;
|
|||
import scala.collection.mutable.ArrayBuffer;
|
||||
|
||||
public class Collections {
|
||||
|
||||
|
||||
public static void main(String[] args) {
|
||||
ArrayBuffer<Integer> myarrlist = new ArrayBuffer<Integer>();
|
||||
ArrayBuffer<Integer> myarrlist2 = new ArrayBuffer<Integer>(20);
|
||||
|
|
@ -13,9 +13,6 @@ public class Collections {
|
|||
myarrlist.$plus$eq(13); // to add an element.
|
||||
myarrlist.$plus$eq(-1);
|
||||
|
||||
myarrlist2.$plus$plus$eq(myarrlist);// //$plus$plus$eq is Scala ++= operator
|
||||
myarrlist2.$plus$plus$eq(myarrlist);
|
||||
|
||||
myarrlist2 = (ArrayBuffer<Integer>) myarrlist2.$minus(-1);
|
||||
|
||||
for (int i = 0; i < 10; i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue