Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Substring/Objeck/substring.objeck
Normal file
18
Task/Substring/Objeck/substring.objeck
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
bundle Default {
|
||||
class SubString {
|
||||
function : Main(args : String[]) ~ Nil {
|
||||
s := "0123456789";
|
||||
|
||||
n := 3;
|
||||
m := 4;
|
||||
c := '2';
|
||||
sub := "456";
|
||||
|
||||
s->SubString(n, m)->PrintLine();
|
||||
s->SubString(n)->PrintLine();
|
||||
s->SubString(0, s->Size())->PrintLine();
|
||||
s->SubString(s->Find(c), m)->PrintLine();
|
||||
s->SubString(s->Find(sub), m)->PrintLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue