2018 06 06 第三十一天

2021-08-20 13:01:49 字數 1794 閱讀 3741

class testmybufferedstream {

static

void main(string args) {

.println("buffered cost = "+cost);

.println("mybuffered cost = "+cost);

void copyfile() throws exception{

class mybufferedinputstream {

static

final

intdefault_buf_size

= 8192;

byte buf;

int pos;

int count;

byte[default_buf_size

];byte[bufsize];

int read() throws exception{

void close() throws exception{

static

final

intdefault_buf_size

= 8192;

byte buf;

int pos;

byte[default_buf_size

];byte[bufsize];

void write(int value) throws exception{

void flush() throws exception{

void close() throws exception{

bufferedreader

和bufferedwriter

class bufferedreaderwritertest {

static

void main(string args) {

void copytextfile(){

linenumberreader

裝飾設計模式

class decoratetest {

static

void main(string args) {

.println("人要吃飯,為了生存!");

.println("人吃飯不僅僅是為了生存,還是為了更好的生存!享受健康的生活");

.println("我喜歡吃魚!");

.println("我喜歡羊腿+啤酒(不能太涼,慫人樂即可)!");

outputstreamwriter  是所有的字元輸出流字元到位元組轉換的基礎。編碼轉換器。是所有的字元輸出流的實現都依賴於該類提供的編碼的功能。

class inputstreamreadertest {

static

void main(string args) throws exception {

void test() throws exception{

.println(str);

void test1() throws exception{

);class outputstreamwritertest {

static

void main(string args) throws exception {

void test() throws exception{

class adaptertest {

static

void main(string args) {

.println("我提供了220v的電壓");

.println("220v電壓被轉換為22v工作電壓了!");

.println("220v電壓被轉換為22v工作電壓了!");

第三十一天

一 單行函式 每一行都會執行一次的函式 eg pet表中每乙個pname的長度 select pname,char length pname from pet where char length pname 2 char length 列 獲取列的值的字元長度 單行函式的分類 1.數值型別 roun...

第三十一天(在家裡)

預處理 預處理命令放在函式之外,一般都放在原始檔的前面,他們叫做預處理部分 無參巨集名後不帶引數 其定義的一般形式為 define 識別符號 字串 其中的 表示這是一條預處理命令 凡是以 開頭的均為預處理命令 define為巨集定義命令,識別符號 為所定義的巨集名,字串 可以是常數,表示式,格式串等...

python學習第三十一天(jquery)

jquery 物件就是通過jquery包裝dom物件後產生的物件。jquery 物件是 jquery 獨有的.如果乙個物件是 jquery 物件,那麼它就可以使用 jquery 裡的方法 test html test html 意思是指 獲取id為test的元素內的html 其中html 是jque...