1. 程式人生 > >程序設計語言具有心理工程及技術

程序設計語言具有心理工程及技術

可維護性 sta 構造 nal cat 心理 .get table channels

程序設計語言具有心理工程及技術等特性。

(1)心理特性:歧義性、簡潔性、局部性、順序性、傳統性。

(2)工程特性:可移植性,開發工具的可利用性,軟件的可重用性、可維護性。

(3)技術特性:支持結構化構造的語言有利於減少程序環路的復雜性,使程序易測試、易維護。

 1 package Com.TableTest;
 2 
 3 
 4 import java.io.FileInputStream;
 5 import java.io.FileOutputStream;
 6 import java.io.IOException;
 7 import java.nio.channels.FileChannel;
8 9 //文件內容與內容的復制 10 public class TableText_24 { 11 12 public static void main(String[] args) { 13 TableText_24 t=new TableText_24(); 14 t.fileCopy(); 15 } 16 17 public void fileCopy() { 18 FileChannel input = null; 19 FileChannel output = null
; 20 21 try { 22 input = new FileInputStream("H://borter.txt").getChannel(); 23 output = new FileOutputStream("H://borter2.txt").getChannel(); 24 25 output.transferFrom(input, 0, input.size()); 26 } catch (Exception e) { 27 e.printStackTrace();
28 } finally { 29 try { 30 if (input != null) { 31 input.close(); 32 } 33 if (output != null) { 34 output.close(); 35 } 36 } catch (IOException e) { 37 e.printStackTrace(); 38 } 39 } 40 } 41 }

程序設計語言具有心理工程及技術