Lesson 19 of 34
Return Values
9 min 30 XP
Value ফেরত দিতে void-এর বদলে তার type (int, double, boolean, String) লিখুন এবং return ব্যবহার করুন। return চলামাত্র method শেষ হয়।
Example: edit me and press Run
Output Loading Java (first time takes a few seconds)
Press Run to see the result here.ভালো method একটিই কাজ করে আর তার নামই বলে কী কাজ: isPrime, findMax, calculateTax।