Excel - 如何使用当前值填充下面的空行,直到在同一列中满足新值。需要非VBA解决方案

时间:2016-08-29 14:08:09

标签: excel

我有几张包含测试用例的表格。目前它们看起来像这样:

public static void main(String[] args) throws IOException {

     String first = "file1.txt";
     String second = "file2.txt";
     BufferedReader fBr = new BufferedReader(new FileReader(first));
     BufferedReader sBr = new BufferedReader(new FileReader(second));   




     PrintWriter writer = new PrintWriter("test.txt", "UTF-8");  
     while ((first = fBr.readLine()) != null) {
         String partOne1 = fBr.readLine();
         String partTwo1 = sBr.readLine();
         while ((second = sBr.readLine()) != null) {
                System.out.println(first);
                writer.println(first);  
                break;                   

         }
     }


     writer.close();
     fBr.close();
     sBr.close(); 

我需要表格如下:

1<2

...其中 A 列中的每一行都会自动填充,直到下面一行中的下一个值,依此类推。

谢谢!

0 个答案:

没有答案