Suppose I have two classes, one is the main class A and the other is the class that helps in processing results for A, class B.
Suppose in class A I take user input a1, and a2. Then I have to send these inputs to class B for processing, and with these inputs, B generates a result b1 and b2 (which are not related to a1 and a2 independently, but a1 and a2 together generate these two results). And since class A being the main class, has to access b1 and b2 to display the results.
我该如何做到这一点?
我目前正在开发一个使用. 我真的很想将处理部分移到另一个班级,但我遇到了问题。抱歉,我的 Java 基础不是那么好。有人可以帮忙吗?Distance-Matrix API
MainActivity.java