Main code starts from Line 4
Line 4: core:new will create new object of className attribute. Give a path of class in className. Same as we use in import statement in JAVA
Line 5: This line is optional. Here in this sample we have input parameter to constructor of StringTokenizer. We can pass parameter to constructore using core:arg tag.
Line 6: This is while loop and here I am calling function of Test object. Note Test is from var in line 4.
Line 7: Here I am calling nextToken function of Test object which will return token in var attribut.
Line 8: Printin Token on consol
No comments:
Post a Comment