File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ The following program demonstrates the use of a FeatureTree. It takes
2121two arguments. The first is the name of a file containing sequence data.
2222The second is a number specifying the format of the data.
2323
24- <java > import java.awt.\* ; import java.awt.event.\* ; import java.io.\* ;
24+ ``` java
25+ import java.awt.\* ; import java.awt.event.\* ; import java.io.\* ;
2526
2627import javax.swing.\* ;
2728
@@ -95,17 +96,19 @@ public class TreeFrame extends JFrame {
9596` }`
9697` }`
9798
98- } </java >
99+ }
100+ ```
99101
100102To draw Tree by Clustering Algorithms (** UPGMA** and ** NJ** ) a Distance
101103Matrix is taken as input. Graphics allow to draw tree with the drawLine
102104function. Match7 will be the main class for the call of NewClass having
103105functions for UPGMA and NJ.
104106
105- <java > package ClusteringAlgorithms public class Match7 { public static
107+ ``` java
108+ package ClusteringAlgorithms public class Match7 { public static
106109void main (String [] args ) {
107110
108- double[ ] [ ] ds1 = {{ },
111+ double [][] ds1 = { { },
109112
110113` {3.5 },`
111114` {17.0 ,14.0 },`
@@ -125,9 +128,9 @@ double[][] ds1 = {{},
125128
126129}
127130
128- </ java >
131+ ```
129132
130- < java >
133+ ``` java
131134
132135import java.awt.\* ; import java.awt.event.\* ;
133136
@@ -541,4 +544,4 @@ class ClosableFrame extends Frame {
541544
542545}
543546
544- </ java >
547+ ```
You can’t perform that action at this time.
0 commit comments