public class Percolation { public Percolation(int n) // create n-by-n grid, with all sites blocked {int grid[][] = new int[n][n];}
public static void main(String[] args) // test client (optional) {Percolation inst = new Percolation(5); System.out.println(inst.grid[1][1]);} }
Can someone explain why the above doesnt work when I type "javac Percolation.java" in to the command line? It seems to point to "inst.grid" within the print statement as the error. It says "error: cannot find symbol".
If I have a class Percolation that is meant to be an n by n grid with other methods (not shown), what should go inside "public Percolation(int n)"? Is this the grid?
It's because you're a nigger that thinks that everything you type will be lifted to the global scope like some niggerlicious scripting language you picked up in CS108 Computers for Business Majors.
Colton Watson
>have homework >brainlet who can't even use stackoverflow >Hmm, better kill a thread and post my question >Oh I know, let's post an ass picture to these horny nerds so I'll get more (you)s
int grind[][] = foo; declares and initializes a local variable. you want a class member: above the constructor declare public int grind[][]; and then initialize it in the constructor. tl;dr:
Question, why do puerto ricans blast their shitty spanish gibberish out of their cars everywhere they go? That shit is fucking annoying and pisses me off
Julian King
They don't in the states.
Jose Smith
where's your namespace you uncouth mf
Carson Morgan
I live in the states and they do that shit literally everywhere they show the fuck up, as if normal people want to hear that fucking spanish shit
Brandon Harris
Dude are you sure you aren't confusing mexicans with puertoricans?
Colton Ortiz
Yes, they do actually, and they also turn any area they live in into a third world dump.
Cooper Murphy
Yeah going out in underwear will attract a lot of stares regardless of how attractive you look.
Xavier Martinez
Having perfect hips and a crazy even bronze tan probably helps a bit.
Adam Sanders
They all fucking do it, but puerto ricans tend to be the most obnoxious about it. My point is that it's fucking annoying as shit. Why do these people have so little self awareness to realize that nobody but them likes spanish gibberish trash, or do they just not care and want/need attention from strangers? That's why I avoid those areas like the plague. It's like a fucking nuclear bomb went off and literal subhumans have taken over the planet, with fucking spanish music blasting and sirens going off everywhere. Why do you think whites don't want to live around puerto ricans, or any hispanic group for that matter other than maybe cubans? Because they're annoying and bring their third world behavior everywhere they go