小编GDa*_*son的帖子

方法调用另一个文件

我有两个文件:

  • Test.java
  • Other.java

我想学习如何将文件"Test.java"称为另一个文件"other.java"中的方法

谢谢!

java methods

9
推荐指数
1
解决办法
3万
查看次数

舍入 - 数十个

我现在开始使用android和java,我有一个问题.

I have a result x = 206.0548.
And y = 206, both of type double
How do I get the result is always rounded up to 210?

In other cases, assuming x = 203.5231 I wanted to round to 205.
If x = 201 to 205 round off.
If x = 198.25 round off to 200.
Run Code Online (Sandbox Code Playgroud)

... 谢谢

java double android

2
推荐指数
1
解决办法
220
查看次数

标签 统计

java ×2

android ×1

double ×1

methods ×1