Print Text with Quotes

This program demonstrates printing double quotes inside text.

Problem Statement

Write a Java program that prints text with double quotes.

Source Code

1 public class QuotesEscape {
2 public static void main(String[] args) {
3 System.out.println("Eduinq says \"Java is powerful\"");
4 }
5 }

Program Output

Eduinq says "Java is powerful"

Explanation

\" Allows printing double quotes inside a string. Prints text with quotes. Conclusion: Shows how to include quotes in output using escape sequences.

Quick Links to Explore