Java Basic 11: Escape Character

11 January 2020, 7:40 pm by antelove19

Java programming language

Java programming language



Happy Coding


main.c

/* ------------------------------------------------------------ */
/*  Output string                                               */
/*  Escape Character                                            */
/*                                                              */
/*  Author: antelove                                            */
/*  Website: antelove.com                                       */
/* ------------------------------------------------------------ */

public class Main
{

    public static void main(String[] args) {

        System.out.println("This is new line \n"); // newline
        System.out.println("This is tab \t"); // tab
        System.out.println("This is \'single\' qoute"); // single qoute
        System.out.println("This is \"double\" qoute"); // double qoute
        System.out.println("This is back \\ slash"); // backslash       

    }

}

Thank for reading :)



No Action Title
1 Live
2 Editor
0 comment