Here are couple of websites to help you with JAVA The new boston, W3schools
Data and Expressions
we are going to discusses the conversion of data from one type to another, and how to read input interactively from the user running a program.
CHARACTER STRINGS:
A character strings is an object in Java, defined by the class String. Because Strings are so fundamental to computer programming, Java provides the ability to use a String Literal, delimited by double quotation characters.
the following are all valid examples of String Literal,
"x"
""
"My name :-"
A String Literal can contain any valid characters, including numeric digits, punctuation, and other special characters.
The print and println Methods:
System.out.println ("What ever you want to write.");
This statement demonstrates the use of objects. The System.out object represents an output device or file, which by default is the monitor screen. The object name is out and it is stored in the System class.
The println method is a service that the System.out object performs for us, whenever we request it, the object will print a character string to the screen. We can say that we send the println message to the System.out object.
Each piece of the data that we sent to a method is called a parameter. In this case the println method takes only one parameter the string of characters to be printed.
The difference between print and println is small but important, the println method prints the information sent to it, then moves to the beginning of the next line. The print method is similar but does not advance to the next line when completed.
String Concatenation:
A string literal cannot span multiple lines in a program. The next statement would produce an error.
System.out.println ("My name is : Ismael and i'm 29, This is my blog
have a look and write your comment");
When we want to print a string that is too long to fit on one line in a program, we can rely on String Concatenation to append one string to the end of another, the String Concatenation operator is the plus sign (+).
So oue statement should be:
System.out.println ("My name is : Ismael and i'm 29, This is my blog" +
"have a look and write your comment");