User inputs via Command Prompt using arguments of main() method of a class.

There is also a third way to take user input via using Console class. This method helps a user to…

Continue Reading →

Basic Java – 17 || Runtime User Input using Console Class (Part-3).

There is also a third way to take user input via using Console class. This method helps a user to…

Continue Reading →

Basic Java – 16 || Runtime User Input using BufferedReader Class (Part-2).

An alternate method to take user input is BufferedReader class. Unlike Scanner class, BufferedReader is fast and simple. If you don’t…

Continue Reading →

Desires (दिल के अरमान)

(Desires) दिल के अरमान  तू जो ख्वाबो में आये तो मेला कर दे, गम के मरुथल में प्यार का रेला कर दे!…

Continue Reading →

Useful methods and implementation under Scanner Class.

To get user input at runtime we have to use Scanner Class. It contains various inbuilt methods which can be…

Continue Reading →

Basic Java – 15 || Runtime User Input using Scanner Class (Part-1).

Scanner Class is the commonly used way of taking user inputs. There are many instances where user interaction is needed…

Continue Reading →

Basic Java – 14 || Difference between IndexOf() and lastIndexOf() methods of Strings in JAVA.

Both indexOf() and lastIndexOf() are methods of String object. These methods will be used to get the position or index…

Continue Reading →