BeginnersBook

  • Home
  • Java
    • Java OOPs
    • Java Collections
    • Java Examples
  • C
    • C Examples
  • C++
    • C++ Examples
  • DBMS
  • Computer Network
  • Python
    • Python Examples
  • More…
    • jQuery
    • Kotlin
    • WordPress
    • SEO
    • JSON
    • JSP
    • JSTL
    • Servlet
    • MongoDB
    • XML
    • Perl

Java – String getChars() Method example

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

The method getChars() is used for copying String characters to an Array of chars. public void getChars(int srcBegin, int srcEnd, char[] dest, int destBegin) Parameters… [Read More]

Tags: Java-Strings

Java – String toLowerCase() and toUpperCase() Methods

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

The method toLowerCase() converts the characters of a String into lower case characters. It has two variants: String toLowerCase(Locale locale): It converts the string into… [Read More]

Tags: Java-Strings

Java String replace(), replaceFirst() and replaceAll() methods

Last Updated: September 16, 2022 by Chaitanya Singh | Filed Under: java

In this tutorial, we will discuss replace(), replaceFirst()and replaceAll() methods. All of these Java String methods are mainly used for replacing a part of String… [Read More]

Tags: Java-Strings

Java String split() Method with examples

Last Updated: December 1, 2024 by Chaitanya Singh | Filed Under: java

Java String split method is used for splitting a String into substrings based on the given delimiter or regular expression. For example: Input String: chaitanya@singh… [Read More]

Tags: Java-Strings

Java String substring() Method with examples

Last Updated: September 17, 2022 by Chaitanya Singh | Filed Under: java

The substring() method is used to get a substring from a given string. This is a built-in method of string class, it returns the substring… [Read More]

Tags: Java-Strings

Java String startsWith() Method with examples

Last Updated: September 16, 2022 by Chaitanya Singh | Filed Under: java

The startsWith() method of String class is used for checking prefix of a String. It returns a boolean value true or false based on whether… [Read More]

Tags: Java-Strings

Java String length() Method with examples

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

Java String length() method is used to find out the length of a String. This method counts the number of characters in a String including… [Read More]

Tags: Java-Strings

Java String lastIndexOf() Method with example

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

In the last tutorial we discussed indexOf() method, which is used to find out the occurrence of a specified char or a substring in the… [Read More]

Tags: Java-Strings

Java String indexOf() Method

Last Updated: July 1, 2024 by Chaitanya Singh | Filed Under: java

Java String indexOf() method is used to find the index of a specified character or a substring in a given String. Here are the different… [Read More]

Tags: Java-Strings

Java String equals() and equalsIgnoreCase() Methods example

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

In this tutorial we will discuss equals() and equalsIgnoreCase() methods. Both of these methods are used for comparing two strings. The only difference between them… [Read More]

Tags: Java-Strings

Java String endsWith() Method with example

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

Java String endsWith(String suffix) method checks whether the String ends with a specified suffix. This method returns a boolean value true or false. If the… [Read More]

Tags: Java-Strings

Java – String copyValueOf() Method example

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

The method copyValueOf() is used for copying an array of characters to the String. The point to note here is that this method does not… [Read More]

Tags: Java-Strings

Java – String contentEquals() Method example

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

The method contentEquals() compares the String with the String Buffer and returns a boolean value. It returns true if the String matches to the String… [Read More]

Tags: Java-Strings

Java String concat() Method example

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

Java string concat() method concatenates multiple strings. This method appends the specified string at the end of the given string and returns the combined string…. [Read More]

Tags: Java-Strings

Java String compareToIgnoreCase() Method example

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

The Java String compareToIgnoreCase() method compares two strings lexicographically and returns 0 if they are equal. As we know compareTo() method does the same thing,… [Read More]

Tags: Java-Strings

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next Page »

Java Tutorial

Java Introduction

  • Java Index
  • Java Introduction
  • History of Java
  • Features of Java
  • C++ vs Java
  • JDK vs JRE vs JVM
  • JVM - Java Virtual Machine
  • First Java Program
  • Variables
  • Data Types
  • Operators

Java Flow Control

  • Java If-else
  • Java Switch-Case
  • Java For loop
  • Java while loop
  • Java do-while loop
  • Continue statement
  • break statement

Java Arrays

  • Java Arrays

OOPs Concepts

  • OOPs Concepts
  • Constructor
  • Java String
  • Static keyword
  • Inheritance
  • Types of inheritance
  • Aggregation
  • Association
  • Super Keyword
  • Method overloading
  • Method overriding
  • Overloading vs Overriding
  • Polymorphism
  • Types of polymorphism
  • Static and dynamic binding
  • Abstract class and methods
  • Interface
  • Abstract class vs interface
  • Encapsulation
  • Packages
  • Access modifiers
  • Garbage Collection
  • Inner classes
  • Static import
  • Static constructor

Java Exception Handling

  • Exception handling
  • Java try-catch
  • Java throw
  • Java throws
  • Checked and Unchecked Exceptions
  • Jav try catch finally
  • Exception Examples
  • Exception Propagation

Collections Framework

  • Collections in Java
  • Java ArrayList
  • Java LinkedList
  • Java Vector
  • Java HashSet
  • Java LinkedHashSet
  • Java TreeSet
  • Java HashMap
  • Java TreeMap
  • Java LinkedHashMap
  • Java Queue
  • Java PriorityQueue
  • Java Deque
  • Comparable interface
  • Comparator interface
  • Collections Interview Questions

MORE ...

  • Java Scanner Class
  • Java 8 Features
  • Java 9 Features
  • Java Conversion
  • Java Date
  • Java Multithreading
  • Java I/O
  • Java Serialization
  • Java Regex
  • Java AWT
  • Java Swing
  • Java Enum
  • Java Annotations
  • Java main method
  • Java Interview Q

Copyright © 2012 – 2025 BeginnersBook . Privacy Policy . Sitemap