The Concatenation Operator

  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View The Concatenation Operator as PDF for free.

More details

  • Words: 125
  • Pages: 7
The Concatenation Operator The concatenation operator + is used to put two string values together. To concatenate two variables together in Java, use the plus (+) operator txt1= "Hello World"; txt2="1234"; System.out.print(txt1 + txt2);

Arithmetic Operators Operator + * / % ++ --

description Addition Subtraction Multiplication Division modulus Increment Decrement

Assignment Operator Operator = += -= *= /= .= %=

Description assign add and assign subtract and assign multiply and assign divide and assign Concatenate and assign Modulus and assign

Comparison Operator Operator

description

== != < < >= <=

is equal to not equal to Greater than Less than Greater than or equal to Less than or equal to

Logical Operator Operators && || !

Description and or not

October 27-November 2. Lectures

Related Documents