I have text file with column name in first line and row value in second line

Hi,
. I tried with array and splitted based on newline,then stored in arraylist in java.I want logic to split rows having more than one value. When one column and row value is deleted code should work. Give some logic to solve the task.

input:
#LSS
H001R003
#DSSS51
572839
#TOTALRR 1
1.000000
#BEEP 12
5651.78 5508.3

output
LSS DSSS51 TOTALRR BEEP1 BEEP2
H001R003 572839 1.000000 5651.78 5508.3

help me solve logic

Hi, class can help you for that. Write a class for example Row which has values. Then add functionality to a class that will keep the row values. You can use ArrayList too. Then keep track of Rows in another ArrayList so that you can remove row. Im didn’t quite understood what you have problem with…

Hi,
I am working in talend studio. In talend studio, we can not use class and method concepts. tJavarow component we can write java logic only.