Problem understanding java code? -


i don't understand code can explain me

grid int[][] distbest initialized

double distbest int turn = 60; if (g > 1)    this.grid = turn(distbest * turn).grid; else    this.grid = turn(-distbest * turn).grid; 

this section:

turn(distbest * turn) 

means there's function turn returns object contains grid takes double parameter. what's not shown in code return type.

hence, can say, function declared like

grid turn(double d); 

where grid (ficticious) has public attribute of int[][] grid (that's why turn(distbest * turn).grid possible).

i'm basing sample code listed above. other turn parameter.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -