what does this. mean in java code example
Example 1: java meaning
if (you.mean.equals("java programming language")) {
System.out.println("Java is a class-based, object-oriented programming language");
} else if (you.mean.equals("java coffee")) {
System.out.print("the term java comes from an island named 'java', a famous coffee source druing the 1600s ");
}
Example 2: how to use the this keyword in java
class Other{
public double num;
public Other(int num){
this.num = num;
System.out.println(num);
}
}
class scratch{
public static void main(String[] args) {
Other method = new Other(5);
System.out.println(method.num);
}
}
Example 3: java what is the meanning of
E - Element
K - Key
N - Number
T - Type
V - Value
S,U,V etc. - 2nd, 3rd, 4th types
Example 4: this obj java meaning
public class Point {
public int x = 0;
public int y = 0;
public Point(int a, int b) {
x = a;
y = b;
}
}