I'd suggest a slight modification:
use String instead of char[].
It's the usual way to handle strings and you don't have to worry about
references and making a copy of the array, because Strings are immutable
(they never change so no need to make another copy).
François
-Original Message---
I'd suggest a slight modification:
use String instead of char[].
It's the usual way to handle strings and you don't have to worry about
references and making a copy of the array, because Strings are immutable
(they never change so no need to make another copy).
François
-Original Message---
I guess lots of people will answer this so I hope I get it right :-)
This isn't the exact answer but I hope it helps.
structs in C can be thought of class objects in Java (done the hard way)
so your tree node becomes:
class Stree implements Comparable{
Stree left = null;
Stree right = null;
can anybody teach me how to convert this (in C) into Java.
this is taken from ClustalW1.8.1
typedef struct node { /* phylogenetic tree structure */
struct node *left;
struct node *right;
struct node *parent;
float dist;
sint leaf;
int orde