A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Elasticsearch in Action
this week in the
Java in General
if statements in java
Joined: May 31, 2010
Jul 30, 2010 16:31:01
I am traversing an adjacency matrix
if I am in a for loop and want to check if
an adj matrix adjmatrix[x][y] has an entry at index x and index y in a if statement; how would i do that?
right now i have
if(adj[x][y] && value[x]< -priority)
doesn't like it
So, how would I say, in an "if" statement
if the adjacency matrix has an entry at [x][y]
how would i write that in java?
Joined: Jun 01, 2010
Jul 30, 2010 17:01:09
This is a double post. See
Priority First Search and Adjacency Matrix
I agree. Here's the link:
subject: if statements in java
June Newsletter Puzzle
Manipulating Vectors (code not working)
Texturing a matrix
Two Way HashMap?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015