JavaUser.java 389 字节
Newer Older
1 2
package uts.sdk.modules.utsSyntaxcase;

3 4
import io.dcloud.uts.console;

5 6 7 8 9 10 11 12 13 14 15
public class JavaUser {

    public String name;
    public int age;

    public JavaUser(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String toString() {
16 17 18
        String ret = "Name: " + name + ", Age: " + age;
        console.log(ret);
        return ret;
19
    }
20
    
21 22

}