⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testio.java

📁 用NETBEANS做的一个关于Java的小小的demo.大家赐教
💻 JAVA
字号:
/*
 * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -