Make Java Easier to Learn

aeric

Expert
Licensed User
Longtime User

Not only that, they should introduce a simpler way to print to a log.

System.out.println() is scary.

B4X has done a good job by using Log() to print to the IDE logs.
 

Johan Schoeman

Expert
Licensed User
Longtime User
If you write in JAVA for B4J / B4A you can use BA.Log(string) if you import the BA class. Underneath the bonnet in Class BA it does this

B4X:
public static void Log(String Message) {
        System.out.println(Message == null ? "null" : Message);
    }

With inline Java code you dont have to import the BA class. Just use BA.Log(......).
 

aeric

Expert
Licensed User
Longtime User
If you write in JAVA for B4J / B4A you can use BA.Log(string) if you import the BA class. Underneath the bonnet in Class BA it does this

B4X:
public static void Log(String Message) {
        System.out.println(Message == null ? "null" : Message);
    }

With inline Java code you dont have to import the BA class. Just use BA.Log(......).
I don't mean in B4X environment.
My point is after many years, now the people in Java, finally realize and acknowledge that Java is not beginner friendly.
It scared away many students who were learning how to begin with programming.
Compared to other programming languages like B4X, VB, PHP and Python, Java is not making sense for newcomers. I don't like C# either.
 
Top