testio.java
来自「用NETBEANS做的一个关于Java的小小的demo.大家赐教」· Java 代码 · 共 38 行
JAVA
38 行
/*
* TestIO.java
*
* Created on 2007年9月13日, 下午9:49
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package io;
import java.util.Scanner;
import static java.lang.Math.*;
/**
*
* @author Administrator
*/
public class TestIO {
/** Creates a new instance of TestIO */
public TestIO() {
}
public static void main(String[] args) {
double value = 1.22222;
System.out.printf("value = %2.1f",value);
Scanner s = new Scanner(System.in);
int n = s.nextInt();
System.out.printf("n = %d",n);
System.out.println(-1<<2);
System.out.println(-1>>2);
System.out.println(-1>>>2);
System.out.println(00100000);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?