Lesson 23 of 34

StringBuilder: দ্রুত String তৈরি

8 min 30 XP

Strings immutable বলে loop-এ += প্রতিবার নতুন String তৈরি করে, যা ধীর। StringBuilder mutable এবং দ্রুত। String বনাম StringBuilder interview-এর সাধারণ প্রশ্ন।

Example: edit me and press Run

Output Loading Java (first time takes a few seconds)
Press Run to see the result here.

split() একটি String-কে String array-তে ভাঙে এবং String.join() টুকরোগুলো আবার জোড়ে।

Example: edit me and press Run

Output Loading Java (first time takes a few seconds)
Press Run to see the result here.

Challenge

+30 XP

একটি বাক্য পড়ে তার শব্দগুলো উল্টো ক্রমে print করুন। Input: I love Java Output: Java love I

Output Loading Java (first time takes a few seconds)
Press Run to see the result here.