How to Use Quotes Inside a String in Java


In this example, we will learn you how to use quotes inside a string in Java.

Source Code

package com.beginner.examples;

public class QuotesInsideString {
  public static void main(String[] args) {
    String str = "It's me."; // quotes inside a string
    System.out.println(str);
  }
}

Output:

It's me.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments