Friday, November 26, 2010

Java Tutorial #2

0
The Two ways to do a Process of Concatenation
This article will show you the two concatenation process available and valid to Java.  One way is by using a symbol "+" and the other way is by using the ".concat( )" method.  You will later know what is the difference between the two.

START----->

The "+" symbol is using by the concatenation operation.  It is use to concat (combine) two strings, variables, characters and others. In the previous program we make sense the use of the "+" symbol.  We use the "+" symbol the combine the string "n1 is " and the value of the variable n1.  (We don't want to spend more time hark backing some things that uses our very important sense , the common sense.) Now, Let's move to the other way.  The .concat( ); function have some similarities to "+" operator (NOTE: .concat() is not the same as "+"), aside from a fact that "+" can concat any variables compare to .concat( ) function who can concat only a string.  For example, (Explanations is on the comments!)




No Response to "Java Tutorial #2"

Post a Comment