Win a copy of Serverless Applications with Node.js this week in the NodeJS forum!

Swastik Dey

Rancher
+ Follow
since Jan 08, 2009
Swastik likes ...
Android Eclipse IDE Java Java ME
Kolkata, West Bengal, India
Cows and Likes
Cows
Total received
15
In last 30 days
0
Total given
0
Likes
Total received
124
Received in last 30 days
1
Total given
2
Given in last 30 days
1
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Swastik Dey

Just change the file path.

2 days ago
try this
2 days ago
Let me understand your requirement once again, it reads a word from the words file and searches in the grid am I correct?
2 days ago
In that case you might be able search row wise only no questions of columns, because you don't have multiple columns, am I correct?
2 days ago
So each line has a single word?
2 days ago
How does your word.txt file look like, can you show us sample data?
2 days ago

The above code is creating array of 10 elements.  But each array element is not initialized, that's why you are getting NPE in the following lines



2 days ago
If you are able to print it, you should be able to search as well.  Logic goes almost same.  Using a loop you printed, use a similar kind of a loop and search
2 days ago
And what's the expected output?  Print all rows of first column the all rows of second column like this or print all columns of first row the then all columns of second row like this?
2 days ago
This is likely to resolve your problem#2



3 days ago
You need to instantiate/load the class to invoke the static initialiser block.  It will be called once when the class is loaded.

2 weeks ago