Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Substring/Apex/substring.apex
Normal file
15
Task/Substring/Apex/substring.apex
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
String x = 'testing123';
|
||||
//Test1: testing123
|
||||
System.debug('Test1: ' + x.substring(0,x.length()));
|
||||
//Test2: esting123
|
||||
System.debug('Test2: ' + x.substring(1,x.length()));
|
||||
//Test3: testing123
|
||||
System.debug('Test3: ' + x.substring(0));
|
||||
//Test4: 3
|
||||
System.debug('Test4: ' + x.substring(x.length()-1));
|
||||
//Test5:
|
||||
System.debug('Test5: ' + x.substring(1,1));
|
||||
//Test 6: testing123
|
||||
System.debug('Test6: ' + x.substring(x.indexOf('testing')));
|
||||
//Test7: e
|
||||
System.debug('Test7: ' + x.substring(1,2));
|
||||
Loading…
Add table
Add a link
Reference in a new issue