hi,
i started to learn JAVA, for now i use Youtube tutorials for that, you have really enough and also udemy got some free JAVA courses.
now i see how much work @Erel had put on b4x. Java is so different then VB
at this moment i am really curious to know how erel convert this simple JAVA code to B4A.
in JAVA you have "=" and "=="
if you want to set a value you use "=" if you want to check if something is equal you use "=="
now in b4a i always use "=" but how does B4A know when i ask for equal or when i want to set a value to an integer for example, like:
JAVA:
B4A:
you can see that one time i use "=" to ask if is equal and one time i use "=" to set the new value to "age"
but if b4a converts the code to JAVA how does he know when to convert "=" to "=" or to "=="
just curious
i started to learn JAVA, for now i use Youtube tutorials for that, you have really enough and also udemy got some free JAVA courses.
now i see how much work @Erel had put on b4x. Java is so different then VB
at this moment i am really curious to know how erel convert this simple JAVA code to B4A.
in JAVA you have "=" and "=="
if you want to set a value you use "=" if you want to check if something is equal you use "=="
now in b4a i always use "=" but how does B4A know when i ask for equal or when i want to set a value to an integer for example, like:
JAVA:
B4X:
int age;
age = 5;
if (age == 5 || age <5) {
age = 6;
} else {
System.out.print("You are to old");
}
B4A:
B4X:
Dim age as int = 5
if age <= 5 then age =6 else log("You are to old")
you can see that one time i use "=" to ask if is equal and one time i use "=" to set the new value to "age"
but if b4a converts the code to JAVA how does he know when to convert "=" to "=" or to "=="
just curious