Rewriting using raw strings

You can define a multiline string value by using raw literals, as follows:

String html =  
`<HTML>                                      
    <BODY> 
        <H1>Meaning of life</H1>  
    </BODY> 
</HTML> 
`; 

By using ` as the opening and closing delimiter, you can define multiline string literals with ease and elegance.

The preceding code is free from Java indicators (concatenation operators or escape sequences).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.42.134