How can i add a new count to this source code ? 0 Answer(s) 3 years and 4 months ago
Posted in : Java Beginners
Hi everyone
I have 5 variables
1. XTSM is between 0~200 2. XTS is between 0~2 3. XRX is 0~3 4. XHAN is 0~7 5. ZHTYPE is one of these : (1)TCHF_HLF (2)TCHSD (3)TCHFULL
they are related to their with this shape .
XTSM->XTS->XRX->XHAN->ZHTYPE (Just Logical)
Please tell me how can i see this output?
Code:
----Type------------------Total---------------------Total of ZHTYPE----------------- XTSM:0/XTS:0 in this case is : 29 TCHF_HLF:28 TCHSD:1 TCHFULL:0 XTSM:0/XTS:1 No. of found XTSM:0/XTS:2 No. of found XTSM:1/XTS:0 No. of found XTSM:1/XTS:1 No. of found XTSM:1/XTS:2 No. of found
I get XTSM/XTS/TRX/XHAN and now i want count total of this
ZHTYPE is one of these : (1)TCHF_HLF (2)TCHSD (3)TCHFULL
they are related to their with this shape .
* Each XTSM has 3 XTS (0-2) * Each XTS has 4 XRX (0-3) * Each XRX has 8 XCHAN (0-7) * and Each line has a type of ZHTYPE
This is sample file: http://www.4shared.com/file/210566155/c080d93a/db_online.html
This output with this code is true but I want add ZHTYPE at the end of each line + XTSM/XTS please help me ???(for example this : XTSM:0/XTS:0 : 29 TCHF_HLF:28 TCHSD:1 TCHFULL:0)
Code:
public class Test {
public static void main(String[] args) throws IOException { Test test = new Test(); test.execute(); }