亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? basicio.java

?? java小小的程序小小的程序小小的程序小小的程序小小的程序小小的程序小小的程序
?? JAVA
字號:
import java.io.* ;/** * simple methods for basic input/output (Java 1.1) * @author Roger Garside * @version Last Rewritten: 16/Sept/97 */public class BasicIo    {     /**     * output a prompt message to the screen     * @param prompt message     */    public static void prompt(String s)	{	System.err.print(s) ;	System.err.flush() ;	} // end of method prompt    /**     * read the next line from the keyboard as a String     * @return the line as a String     */    public static String readString() throws IOException        {	BufferedReader in = new BufferedReader(new					InputStreamReader(System.in)) ;        return in.readLine() ;        } // end of method readString    /**     * read a character, the first on the line     * @return the first character on the line     */    public static char readCharacter() throws IOException        {	BufferedReader in = new BufferedReader(new					InputStreamReader(System.in)) ;        String s = in.readLine() ;	if (s.length() == 0)            return ' ' ;        else	    return s.charAt(0) ;        } // end of method readCharacter    /**     * read the next line from the keyboard as an integer     * @return the line as an integer     */    public static int readInteger() throws IOException        {        String line ;	BufferedReader in = new BufferedReader(new					InputStreamReader(System.in)) ;        try            {            line = in.readLine() ;            int i = Integer.parseInt(line.trim()) ;            return i ;            }        catch (Exception e)            {            throw new IOException("invalid integer") ;            }        } // end of method readInteger    /**     * read the next line from the keyboard as a float     * @return the line as a float     */    public static float readFloat() throws IOException        {        String line ;	BufferedReader in = new BufferedReader(new					InputStreamReader(System.in)) ;        try            {            line = in.readLine() ;            return Float.valueOf(line.trim()).floatValue() ;            }        catch (Exception e)            {            throw new IOException("invalid float") ;            }        } // end of method readFloat    /**     * read the next line from the keyboard as a double     * @return the line as a double     */    public static double readDouble() throws IOException        {        String line ;	BufferedReader in = new BufferedReader(new					InputStreamReader(System.in)) ;        try            {            line = in.readLine() ;            return Double.valueOf(line.trim()).doubleValue() ;            }        catch (Exception e)            {            throw new IOException("invalid double") ;            }        } // end of method readDouble    /**     * output an integer in a field of a specified width     * @param n the integer to be output     * @param w the width of the field     */    public static void writeInteger(int n, int w)        {        Integer n1 = new Integer(n) ;        String t = n1.toString() ;        if (t.length() > w)            System.out.print(t) ;        else            {            for (int i = 0 ; i < w - t.length() ; i++)                System.out.print(' ') ;            System.out.print(t) ;            }        } // end of method writeInteger    /**     * output a float in a field of a specified width     * @param n the float to be output     * @param w the width of the field     * @param d the number of decimal places     */    public static void writeFloat(float n, int w, int d) throws IOException	{	Float n1 = new Float(n) ;	String t = n1.toString() ;	//System.err.println("string is **" + t + "**") ;	if (t.indexOf('e') != -1)	    throw new IOException("out of range") ;        if (d < 1)	    throw new IOException("invalid 3rd argument") ;	boolean negative = false ;	if (t.charAt(0) == '-')	    {	    negative = true ;	    t = t.substring(1) ;	    }	int index = t.indexOf('.') ;	int decimals ;	if (index == -1)	    decimals = 0 ;	else	    {	    decimals = t.length() - index - 1 ;            if (decimals <= 0)		throw new IOException("funny format") ;	    }	if (decimals < d)	    {	    if (decimals == 0)		t += '.' ;	    for (int i = 0 ; i < d - decimals ; i++)		t += '0' ;	    }	else if (decimals > d)	    {	    int offset = t.length() - decimals + d ;	    if (t.charAt(offset) < '5')		t = t.substring(0, t.length() - decimals + d) ;	    else		{		StringBuffer sb = new StringBuffer(t) ;		offset-- ;		while ((offset >= 0) &&		       ((sb.charAt(offset) == '9') ||		        (sb.charAt(offset) == '.')))		    {		    if (sb.charAt(offset) == '9')		        sb.setCharAt(offset, '0') ;		    offset-- ;		    }		if (offset >= 0)		    {		    sb.setCharAt(offset,	Character.forDigit(Character.digit(sb.charAt(offset), 10) + 1, 10)) ;	t = sb.toString().substring(0, t.length() - decimals + d) ;		    }		else	t = '1' + sb.toString().substring(0, t.length() - decimals + d) ;		}	    }	if (negative)	    t = '-' + t ;	if (t.length() > w)	    System.out.print(t) ;	else	    {	    for (int i = 0 ; i < w - t.length() ; i++)		System.out.print(' ') ;	    System.out.print(t) ;	    }	} // end of method writeFloat    /**     * output a double in a field of a specified width     * @param n the double to be output     * @param w the width of the field     * @param d the number of decimal places     */    public static void writeDouble(double n, int w, int d) throws IOException	{	Double n1 = new Double(n) ;	String t = n1.toString() ;	//System.err.println("string is **" + t + "**") ;	if (t.indexOf('e') != -1)	    throw new IOException("out of range") ;        if (d < 1)	    throw new IOException("invalid 3rd argument") ;	boolean negative = false ;	if (t.charAt(0) == '-')	    {	    negative = true ;	    t = t.substring(1) ;	    }	int index = t.indexOf('.') ;	int decimals ;	if (index == -1)	    decimals = 0 ;	else	    {	    decimals = t.length() - index - 1 ;            if (decimals <= 0)		throw new IOException("funny format") ;	    }	if (decimals < d)	    {	    if (decimals == 0)		t += '.' ;	    for (int i = 0 ; i < d - decimals ; i++)		t += '0' ;	    }	else if (decimals > d)	    {	    int offset = t.length() - decimals + d ;	    if (t.charAt(offset) < '5')		t = t.substring(0, t.length() - decimals + d) ;	    else		{		StringBuffer sb = new StringBuffer(t) ;		offset-- ;		while ((offset >= 0) &&		       ((sb.charAt(offset) == '9') ||		        (sb.charAt(offset) == '.')))		    {		    if (sb.charAt(offset) == '9')		        sb.setCharAt(offset, '0') ;		    offset-- ;		    }		if (offset >= 0)		    {		    sb.setCharAt(offset,	Character.forDigit(Character.digit(sb.charAt(offset), 10) + 1, 10)) ;	t = sb.toString().substring(0, t.length() - decimals + d) ;		    }		else	t = '1' + sb.toString().substring(0, t.length() - decimals + d) ;		}	    }	if (negative)	    t = '-' + t ;	if (t.length() > w)	    System.out.print(t) ;	else	    {	    for (int i = 0 ; i < w - t.length() ; i++)		System.out.print(' ') ;	    System.out.print(t) ;	    }	} // end of method writeDouble    } // end of class BasicIo  

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产成人精品视频| 狠狠狠色丁香婷婷综合激情| 日韩二区在线观看| 国产xxx精品视频大全| 欧美亚洲动漫另类| 久久青草欧美一区二区三区| 亚洲欧美一区二区在线观看| 美女在线视频一区| 99久久精品国产麻豆演员表| 337p亚洲精品色噜噜狠狠| 国产精品美女久久久久久久网站| 亚洲国产欧美日韩另类综合 | 国产农村妇女精品| 亚洲精品v日韩精品| 精品一区二区三区免费毛片爱| 播五月开心婷婷综合| 欧美日韩国产不卡| 国产精品免费视频观看| 免费久久99精品国产| www.日韩在线| wwwwxxxxx欧美| 亚洲综合区在线| 成人av在线看| 26uuu久久天堂性欧美| 亚洲一区二区三区精品在线| 国产99久久久国产精品潘金| 日韩三级在线免费观看| 亚洲综合色网站| 99久久久久久| 日韩欧美在线网站| 亚洲另类在线制服丝袜| 成人av中文字幕| 欧美日韩电影一区| 国产午夜亚洲精品不卡| 亚洲三级电影网站| 成人免费观看av| 337p粉嫩大胆色噜噜噜噜亚洲| 亚洲h动漫在线| 色老头久久综合| 国产精品国产自产拍高清av王其| 精品一二线国产| 日韩一区二区三区免费看| 天天影视色香欲综合网老头| 欧美性生活久久| 亚洲精品欧美在线| 色素色在线综合| 一区二区三区在线观看视频| 色综合色综合色综合色综合色综合 | 国产乱码一区二区三区| 日韩欧美的一区二区| 另类人妖一区二区av| 日韩一级片在线观看| 蜜桃传媒麻豆第一区在线观看| 欧美高清激情brazzers| 日韩激情中文字幕| 欧美一区二区国产| 三级亚洲高清视频| 欧美色图在线观看| 亚洲成人一二三| 日韩欧美国产一二三区| 久久99精品久久久久久动态图| 日韩欧美成人一区二区| 国产美女视频一区| 日韩毛片精品高清免费| 欧洲色大大久久| 亚洲成人av一区二区三区| 欧美视频在线一区二区三区| 亚洲综合免费观看高清在线观看| 精品视频999| 日本成人在线网站| 久久久蜜桃精品| av爱爱亚洲一区| 亚洲精品欧美激情| 欧美另类一区二区三区| 午夜精品一区二区三区免费视频| 欧美一区二区网站| 亚洲成a人片综合在线| 欧美电影免费观看高清完整版在线观看 | 91在线精品一区二区三区| 日韩欧美一区在线| 精品国产第一区二区三区观看体验| 精品日韩一区二区| 国产精品一区二区91| 欧美高清视频不卡网| 国产一区二区三区香蕉| 亚洲柠檬福利资源导航| 欧美日韩午夜在线视频| 国产成人在线色| 亚洲香肠在线观看| 久久久影视传媒| 欧美日韩国产首页在线观看| 国内一区二区在线| 亚洲国产色一区| 精品播放一区二区| 欧美性色黄大片| 粉嫩蜜臀av国产精品网站| 亚洲午夜精品一区二区三区他趣| 国产三级精品视频| 7777精品伊人久久久大香线蕉经典版下载 | 美女视频网站久久| 国产人妖乱国产精品人妖| 欧美日本国产视频| 91免费视频网| 久久99国产精品免费网站| 亚洲免费毛片网站| 国产精品情趣视频| 日韩一区二区精品在线观看| 在线免费观看一区| 成人黄色网址在线观看| 国产乱码精品1区2区3区| 亚洲va欧美va人人爽| 日韩理论片网站| 精品久久一区二区| 欧美日韩色一区| 欧美色偷偷大香| 在线一区二区视频| 成人av动漫在线| 成人免费高清视频在线观看| 国产毛片精品国产一区二区三区| 日韩国产欧美三级| 亚洲免费观看高清| 亚洲欧洲日韩女同| 国产精品―色哟哟| 久久久久久久久伊人| www国产亚洲精品久久麻豆| 日韩欧美中文字幕制服| 日韩欧美综合一区| 7777精品伊人久久久大香线蕉超级流畅 | 亚洲观看高清完整版在线观看| 国产精品国产三级国产三级人妇| 在线亚洲免费视频| 成人av网站在线| 99精品视频在线免费观看| 国产乱国产乱300精品| 久久国产精品露脸对白| 人人狠狠综合久久亚洲| 中文字幕在线视频一区| 久久精品一区蜜桃臀影院| 久久久三级国产网站| 精品视频一区二区三区免费| av激情综合网| 色久综合一二码| 国产99久久久精品| 国产伦精品一区二区三区在线观看 | 色老头久久综合| 欧美色国产精品| 9191国产精品| 26uuu久久天堂性欧美| 国产精品毛片高清在线完整版| 久久久久99精品国产片| 国产精品女主播在线观看| **网站欧美大片在线观看| 亚洲女人小视频在线观看| 一区二区三区美女视频| 图片区小说区国产精品视频| 亚洲午夜av在线| 国产一区二区三区最好精华液| 国产成人福利片| 成人av网站在线观看| 欧美日韩精品免费观看视频| 亚洲精品在线免费播放| 国产视频亚洲色图| 亚洲一区二区高清| 国产在线看一区| 色综合久久综合网欧美综合网| 欧美久久免费观看| 国产三级欧美三级日产三级99| 国产亚洲精品超碰| 亚洲一区二区三区四区的| 久国产精品韩国三级视频| 另类人妖一区二区av| 亚洲女人的天堂| 国产在线视频一区二区三区| 91小视频在线| 精品国产乱码久久久久久图片| 中文字幕中文字幕在线一区 | 在线欧美日韩国产| 欧美tickle裸体挠脚心vk| 亚洲国产电影在线观看| 亚洲v中文字幕| 99久久免费国产| 久久综合精品国产一区二区三区| 国产精品久久久久久户外露出 | 一本到三区不卡视频| 精品国产自在久精品国产| 亚洲一区二区av电影| thepron国产精品| 欧美精品一区二区在线播放| 一区二区高清视频在线观看| 国产成人精品一区二区三区四区| 91精品欧美久久久久久动漫| 国产精品欧美一区二区三区| 国内精品写真在线观看| 欧美人伦禁忌dvd放荡欲情| 一色屋精品亚洲香蕉网站| 99久久综合精品| 亚洲欧美日韩国产另类专区| 91美女在线观看| 一区二区三区产品免费精品久久75| 91免费精品国自产拍在线不卡|