程序设计语言具有心理工程及技术

程序设计语言具有心理工程及技术等特性。

(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 }

猜你喜欢

转载自www.cnblogs.com/borter/p/9395316.html