Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
// Cannot / Do not need to instantiate the algorithm implementation (e.g, HashMap).
|
||||
Map<String, String> strMap = new Map<String, String>();
|
||||
strMap.put('a', 'aval');
|
||||
strMap.put('b', 'bval');
|
||||
|
||||
System.assert( strMap.containsKey('a') );
|
||||
System.assertEquals( 'bval', strMap.get('b') );
|
||||
// String keys are case-sensitive
|
||||
System.assert( !strMap.containsKey('A') );
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
Map<String, String> strMap = new Map<String, String>{
|
||||
'a' => 'aval',
|
||||
'b' => 'bval'
|
||||
};
|
||||
|
||||
System.assert( strMap.containsKey('a') );
|
||||
System.assertEquals( 'bval', strMap.get('b') );
|
||||
Loading…
Add table
Add a link
Reference in a new issue