LessonAbout 5 minLesson languageEnglishதமிழ் (Tamil)हिन्दी (Hindi)മലയാളം (Malayalam)తెలుగు (Telugu)ಕನ್ನಡ (Kannada)বাংলা (Bengali)मराठी (Marathi)ગુજરાતી (Gujarati)ਪੰਜਾਬੀ (Punjabi)Chapter 7 · Lesson 1 of 501. Making your own methodsGive a few lines a name with a static method, then run them whenever you like by calling it: no copying the same lines again.