Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Utilizing the searcher properly

$
0
0
I found this in my learning and Im not completely sure I am utilizing it the right way. I get a positive return on Int M always and garbage on Location return. Any direction on what Im doing wrong.

  result1 = scan.findWithinHorizon("MD844",0);
		if(result1!=null) M++;
		
	result2 = scan.findWithinHorizon("Location:",0);
		if(result2!=null){
			int temp = data.indexOf("Location:");
		location = new String(data.substring(temp + 9,(temp +9) + 25));}

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>