To access a variable from another class in Java, you can use the following steps: Declare the variable as public or protected .
確定! 回上一頁