zoukankan      html  css  js  c++  java
  • 【每日日报】第四十三天

    1 今天继续整理暑假作业

    package File;

    import java.io.FileInputStream;

    import java.io.FileOutputStream;

    import java.io.IOException;

    import java.io.PrintStream;

    public class CPP0047 {

         public static void main(String[] args){

                FileInputStream in=null;

                try{

                       in=new FileInputStream("D:/s2.dat");

                       PrintStream out=new PrintStream(new FileOutputStream("D:/d2.dat"));

                       byte[] ch=new byte[1024];

                       int len=-1;

                       String s=" ";

                       while((len=in.read(ch))!= -1){

                              s=new String(ch,0,len);

                    }

                       char[] ch1=s.toCharArray();

                       for(int i=0;i<s.length();i++){

                              if((ch1[i]>='a')&&(ch1[i]<='z'))ch1[i]-=32;

                       }

                       out.println(ch1);

                }catch (IOException e){

                       System.out.println("can not open txt");

                }

      }

    }

     2 遇到一些小问题 已基本解决

    3 明天开始学习web

  • 相关阅读:
    python之路-笔录3[BOM&DOM&JQuery]
    python之路-笔录2[CSS&JS]
    python 文件读写方式
    python -- 数据可视化(二)
    Django权限机制的实现
    视频云存储使用介绍
    linux安装phantomjs
    基于redis实现分布式锁
    基于数据库实现分布式锁
    分布式锁
  • 原文地址:https://www.cnblogs.com/linmob/p/13519459.html
Copyright © 2011-2022 走看看