Re: Kruskal algorythm.
- From: noaco <www.toba@xxxxxxxxx>
- Date: Sat, 10 Jan 2009 07:28:36 -0800 (PST)
On 10 Gen, 02:48, Lew <no...@xxxxxxxxxxxxx> wrote:
noaco wrote:
[I]'m developing with eclipse, and [I] don't understand for example why,
if [I] try to instance asdlab.libreria.Grafi.GrafoLA graph = new
asdlab.libreria.Grafi.GrafoLA which should be a class gives me an
error.
Syntax error on token(s), misplaced construct(s).
Sounds like you didn't include the parentheses, or else didn't make the
statement inside the correct set of curly braces. WSithout the context of the
source code or the exact, complete error message, it's hard to be certain..
The error message should have come with a little circumflex pointer (^)
indicating which token gave it trouble.
public abstract class Nodo implements Rif{
public Object info;
public Nodo(object info { this.info = info; }
This line is not syntactically correct. Spelling and punctuation ('Object',
parentheses) count.
public abstract Object contenitore();*
}
When you post code, please indent it properly for readability. Two, maybe up
to four, spaces per indent level makes the code on Usenet much easier to
understand for those who wish to help.
Member variables usually should not be 'public', but 'private' and accessed
through "accessor" ('getInfo()') and "mutator" ('setInfo()') methods.
--
Lew
This is the code.
public class principale {
asdlab.libreria.Grafi.GrafoLA graf = new
asdlab.libreria.Grafi.GrafoLA;
public static void main(String[] args) {
}
}
My libraries are jar files included through the referenced libraries
method.
public Nodo(object info { this.info = info; } was as a matter of fact
public Nodo(object info) { this.info = info; }.
So, to create the Graph, should i instance first nodes and edges or it
inherits it?
eh ok.
Thanks.
Bye.
Ciao.
Andrea.
.
- Follow-Ups:
- Re: Kruskal algorythm.
- From: John B. Matthews
- Re: Kruskal algorythm.
- From: Lew
- Re: Kruskal algorythm.
- References:
- Kruskal algorythm.
- From: noaco
- Re: Kruskal algorythm.
- From: John B. Matthews
- Re: Kruskal algorythm.
- From: noaco
- Re: Kruskal algorythm.
- From: John B. Matthews
- Re: Kruskal algorythm.
- From: noaco
- Re: Kruskal algorythm.
- From: Lew
- Re: Kruskal algorythm.
- From: noaco
- Re: Kruskal algorythm.
- From: noaco
- Re: Kruskal algorythm.
- From: noaco
- Re: Kruskal algorythm.
- From: Lew
- Kruskal algorythm.
- Prev by Date: Pass an Image object from java to javascript
- Next by Date: Re: Kruskal algorythm.
- Previous by thread: Re: Kruskal algorythm.
- Next by thread: Re: Kruskal algorythm.
- Index(es):
Relevant Pages
|