Let’s learn String codePointAt(int index) method java. String codePointAt(int index) method Java String codePointAt(int index) method the code point value of the character at the index. The index refers to char values(Unicode code units) and ranges from 0 to length() – 1. Syntax: public int codePointAt(int index) Parameters: index the index to the char values. Throws: IndexOutOfBoundsException –…

Read More String codePointAt(int index) method Java

Let’s learn String indexOf(int ch, int fromIndex) method java. String indexOf(int ch, int fromIndex) method Java String indexOf(int ch, int fromIndex) method returns the index within this string of the first occurrence of the specified character, starting the search at the specified index or -1 if the character does not occur. Syntax: public int lastIndexOf(int…

Read More String indexOf(int ch int fromIndex) method Java

Let’s learn LinkedList in java. LinkedList in java Properties of LinkedList: Methods in LinkedList Here’s the list of LinkedList specific methods. void addFirst(); Inserts the specified element at the beginning of this list. void addLast(); Appends the specified element to the end of this list. Object getFirst(); Returns the first element in this list. Object…

Read More LinkedList in java

Let’s learn Installing Intellij IDEA for Windows 10. Installing Intellij IDEA for Windows An Intellij IDEA is an IDE or Integrated Development Development tool that we use to write programs. Integrated Development Development compiles and runs programs. IntelliJ IDEA IDE is created by company called JetBrains. In this post, we’re going to download the latest…

Read More Installing Intellij IDEA for Windows

Let’s learn method overloading and overriding in java. Method Overloading and Overriding in java Method overloading means two or more methods in a class having the same name but different argument types. Example: class Addition { void display(int a, int b) { System.out.println(“2”); } void display(int a, int b, int c) { System.out.println(“3”); } public…

Read More Method Overloading and Overriding in java

Let’s learn relational operators in java. Relational operators in java Relational operators are used to check relation between two operands for equality, greater than, less than etc. Relational operators return boolean output. There are six relational operators, Equals to operator (==): compares values between two operands for their equality. If both operands value have equal values…

Read More Relational operators in java