Skip to content

Commit fe829f0

Browse files
author
n-gupta
committed
Modified Example
1 parent 59497da commit fe829f0

2 files changed

Lines changed: 4 additions & 14 deletions

File tree

‎examples/groups/H5Ex_G_Corder.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,19 @@ private static void CreateGroup() throws Exception {
4848
ginfo= H5.H5Gget_info(group_id);
4949

5050
//Traverse links in the primary group using alphabetical indices (H5_INDEX_NAME).
51-
System.out.println("Traversing group using alphabetical indices:");
51+
//System.out.println("Traversing group using alphabetical indices:");
5252
for (i=0; i<ginfo.nlinks; i++) {
5353
//Retrieve the name of the ith link in a group
5454
name = H5.H5Lget_name_by_idx(group_id, ".", HDF5Constants.H5_INDEX_NAME, HDF5Constants.H5_ITER_INC, i, HDF5Constants.H5P_DEFAULT);
55-
System.out.println("Index " + (int)i + ": " + name);
55+
//System.out.println("Index " + (int)i + ": " + name);
5656
}
5757

5858
//Traverse links in the primary group by creation order (H5_INDEX_CRT_ORDER).
59-
System.out.println("Traversing group using creation order indices:");
59+
//System.out.println("Traversing group using creation order indices:");
6060
for (i=0; i<ginfo.nlinks; i++) {
6161
//Retrieve the name of the ith link in a group
6262
name = H5.H5Lget_name_by_idx(group_id, ".", HDF5Constants.H5_INDEX_CRT_ORDER, HDF5Constants.H5_ITER_INC, i, HDF5Constants.H5P_DEFAULT);
63-
System.out.println("Index " + (int)i + ": " + name);
63+
//System.out.println("Index " + (int)i + ": " + name);
6464
}
6565

6666
}catch (Exception e) {
Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +0,0 @@
1-
Traversing group using alphabetical indices:
2-
Index 0: 5
3-
Index 1: D
4-
Index 2: F
5-
Index 3: H
6-
Traversing group using creation order indices:
7-
Index 0: H
8-
Index 1: D
9-
Index 2: F
10-
Index 3: 5

0 commit comments

Comments
 (0)