1 Star 0 Fork 0

Roderland/algorithm

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Main.java 822 Bytes
一键复制 编辑 原始数据 按行查看 历史
Roderland 提交于 2021-05-03 18:21 +08:00 . ====== roderland ======
/*
@author: Roderland
@create: 2020-07-30---21:50
*/
public class Main {
public static void main(String[] args) {
System.out.println(Integer.MIN_VALUE>>>1);
// Integer a= 1456;
// Integer b= 1456;
// System.out.println(a==b);
A a = new B();
a.f();
}
public static int highestOneBit(int i) {
i |= (i>>1);
i |= (i>>2);
i |= (i>>4);
i |= (i>>8);
i |= (i>>16);
return i - (i >>> 1);
}
}
class A {
void f() {
System.out.println("A");
}
}
class B extends A {
void f() {
System.out.println("B");
}
}
class MySet {
byte[] row;
byte[] column;
public static final int N = 1250;
public MySet() {
row = new byte[N];
column = new byte[N];
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/Roderland/algorithm.git
git@gitee.com:Roderland/algorithm.git
Roderland
algorithm
algorithm
master

搜索帮助