Professional Documents
Culture Documents
Day 2 B2 Session 1
Day 2 B2 Session 1
Day 2 B2 Session 1
day2
part I
Introduction to java
data types
variable
operators
arrays
method
------------------------------------------------------------------
operators
Arithmetic operators
+,-,*,/ , %
relational operators
>=,<=.==,!=
a = 10;
b = 20;
if(a!=b)
syso()
else
syso()
logical operators
&&
||
assignment
. operator
new operator
ternery
bitwise
Scanner
{
public int nextInt()- to read integer data
{
statement
method
- static method
- non static method
if
if
else
if
else if
while
do while
for - array
switch