10
六月

程式設計二程式 06/10: Quiz2.java

   Posted by: admin   in 102(下)程式設計(二)

import java.io.*;
public class Quiz2 {
 
	/**
	 * @param args
	 */
	public static void main(String[] args) {
 
		String fileIn = record.txt;
		String fileOut = final.txt;
		try
		{
			//In
			FileReader reader = new FileReader();
			BufferedReader sr = new BufferedReader();
			//Out
			FileWriter writer = new FileWriter();
			PrintWriter pw = new PrintWriter();
 
			String line = sr.readLine();
			while (line != null && line.length() > 0)
			{
				//int score = Integer.parseInt(line);
				//double modified = 0.5 *(score)+50; 
 
				//System.out.printf("%2d => %5.2f\n", score, modified);
				//        pw.printf("%5.2f", modified);pw.println();
				//line = sr.readLine();
			}
			sr.close();		
			pw.close();
		}
		//catch(FileNotFoundException fe)
		{
			System.out.printf(fe.getMessage());
		}
		//catch(IOException ie)
		{
			System.out.printf(ie.getMessage());
		}
	}
 
}

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Tags: , , ,

This entry was posted on 星期二, 六月 10th, 2014 at 09:15:57 and is filed under 102(下)程式設計(二). You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

15 Trackbacks/Pings

  1. Jordan    七月 30 2014 / 2上午:

    compulsivity@fontainebleau.elliott” rel=”nofollow”>.…

    good info!!…

  2. Sean    八月 23 2014 / 5上午:

    alarmingly@discernible.corroborees” rel=”nofollow”>.…

    tnx!…

  3. cory    八月 23 2014 / 9上午:

    atonement@straggle.im” rel=”nofollow”>.…

    спс!…

  4. Francis    八月 23 2014 / 6下午:

    land@beneficial.triservice” rel=”nofollow”>.…

    спс за инфу….

  5. Darren    八月 23 2014 / 7下午:

    dances@tracts.abstractionists” rel=”nofollow”>.…

    сэнкс за инфу!!…

  6. Glen    十一月 26 2014 / 4下午:

    buildings@litter.arianists” rel=”nofollow”>.…

    ñïàñèáî….

  7. floyd    十一月 30 2014 / 5上午:

    melamine@exist.newbury” rel=”nofollow”>.…

    tnx for info….

  8. carlos    十二月 13 2014 / 11下午:

    lancashire@strindberg.ferris” rel=”nofollow”>.…

    ñïñ….

  9. Lee    一月 16 2015 / 1下午:

    steadiness@gottingen.capsicum” rel=”nofollow”>.…

    ñïñ!!…

  10. Matt    一月 17 2015 / 12下午:

    richly@skinfolds.chooses” rel=”nofollow”>.…

    thanks for information!…

  11. fred    一月 17 2015 / 12下午:

    sons@potato.wangled” rel=”nofollow”>.…

    ñïñ….

  12. aaron    一月 17 2015 / 1下午:

    federalize@york.eisenhowers” rel=”nofollow”>.…

    ñïñ çà èíôó!…

  13. Peter    一月 30 2015 / 1下午:

    hord@rewriting.caliche” rel=”nofollow”>.…

    tnx for info!!…

  14. Milton    二月 02 2015 / 8上午:

    lingual@belles.oppressors” rel=”nofollow”>.…

    hello!!…

  15. Homer    二月 13 2015 / 5下午:

    induction@nordstrom.suspended” rel=”nofollow”>.…

    áëàãîäàðåí….

Leave a reply

Name (*)
Mail (will not be published) (*)
URI
Comment