Android面试
爱上提子的懒羊羊
这个作者很懒,什么都没留下…
展开
-
Android面试问题总结——Java篇
1. Math.round(11.5)等于多少? Math.round(-11.5)等于多少? round()方法求本身的四舍五入,可以这样理解:将括号内的数+0.5之后,向下取值。 比如:round(3.4)就是3.4+0.5=3.9,向下取值是3,所以round(3.4)=3; round(-10.5)就是-10.5+0.5=-10,向下取值就是-10,所以round(-10.5)=-...转载 2019-04-24 17:38:34 · 175 阅读 · 0 评论 -
Android面试问题总结——编程题篇
1. 删除链表中的重复结点。 /** * 输入:2, 3, 5, 8, 3, 7, 8, 9, 8, 9, 10 * 输出:2, 3, 5, 7, 8, 9, 10 */ public class TestClass { public static void main(String[] args) { // 构造单链表 int[] num = { 2...转载 2019-04-24 17:37:43 · 527 阅读 · 0 评论