

<rss version="2.0"
	xmlns:atom="http://www.w3.org/2005/Atom" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:admin="http://webns.net/mvcb/"
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
		
	<channel>
		<title>RSS Feeds :: DEVPPL - Forums > Java Forum : Topics : Using an array in constructor</title>
	<!--<atom:link href="http://www.devppl.com/forum" rel="self" type="application/rss+xml" />-->
		<description>TOGETHER WE ARE THE BEST</description>
		<link>http://www.devppl.com/forum</link>
		<language>en-gb</language>
		<pubDate>Tue, 17 Aug 2004 14:07:13 +0100</pubDate>
		<lastBuildDate>Sat, 21 Nov 2009 11:54:53 +0000</lastBuildDate>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<generator>MSSTI v0.0.1 - (C) 2008 leviatan21 - http://www.mssti.com/</generator>
		<copyright>Copyright : (c) RSS Feeds :: DEVPPL - Tue, 17 Aug 2004 14:07:13 +0100</copyright>
		<dc:creator>webmaster@devppl.com (DEVPPL)</dc:creator>

		<image>
			<title>RSS Feeds :: DEVPPL - Forums > Java Forum : Topics : Using an array in constructor</title>
			<url>http://www.devppl.com/forum/styles/DEVPPL/imageset/site_logo.gif</url>
			<link>http://www.devppl.com/forum</link>
		</image>
		<ttl>60</ttl>
		
		<item>
			<title>Using an array in constructor</title>
			<link>http://www.devppl.com/forum/./viewtopic.php?p=46491#p46491</link>
				<description><![CDATA[  My problem is this:I was supposed to read two text files and store them
as State array objects: easy. Then I am supposed to do other things like
display it and so on. Problem is, as my code sits now, the method
seqSearch() only accesses one array either arrState or arrSearch, not both
like I need it to. I need to compare the arrays from the ArrayObjects class
search and a and if they match at any time to say so. I need a way to have
both arrays called and searched in respect from one another but I need to
do it from main with no other static methods than main. Hope that made
sense. Here is my code:
<br />Any help is appreciated.
<br />
<br /><code>
<br />import java.io.*;
<br />public class SortMain {
<br />
<br />public static voidmain(String[]  args)
<br />{
<br />String line, line1, name, cap, abbrev, pop, region, regionNumber;
<br />int maxSize = 75;
<br />ArrayObjects arrState = new ArrayObjects(maxSize); 
<br />ArrayObjects arrSearch= new ArrayObjects(maxSize);
<br />
<br />try{
<br />File nFile = new File("States.txt");
<br />FileReader fReader1 = new...<p>Statistics : Posted by <a href="http://www.devppl.com/forum/memberlist.php?mode=viewprofile&amp;u=18697">dch414</a> &bull; on Sun Sep 14, 2008 5:39 pm &bull; Replies 0 &bull; Views 402</p><hr />]]></description>
					<content:encoded><![CDATA[  My problem is this:I was supposed to read two text files and store them
as State array objects: easy. Then I am supposed to do other things like
display it and so on. Problem is, as my code sits now, the method
seqSearch() only accesses one array either arrState or arrSearch, not both
like I need it to. I need to compare the arrays from the ArrayObjects class
search and a and if they match at any time to say so. I need a way to have
both arrays called and searched in respect from one another but I need to
do it from main with no other static methods than main. Hope that made
sense. Here is my code:
<br />Any help is appreciated.
<br />
<br /><code>
<br />import java.io.*;
<br />public class SortMain {
<br />
<br />public static voidmain(String[]  args)
<br />{
<br />String line, line1, name, cap, abbrev, pop, region, regionNumber;
<br />int maxSize = 75;
<br />ArrayObjects arrState = new ArrayObjects(maxSize); 
<br />ArrayObjects arrSearch= new ArrayObjects(maxSize);
<br />
<br />try{
<br />File nFile = new File("States.txt");
<br />FileReader fReader1 = new...]]></content:encoded>
					<category domain="http://www.devppl.com/forum/viewforum.php?f=47"><![CDATA[Java Forum]]></category>
			<dc:creator><![CDATA[18697]]></dc:creator>
			<dc:date>2008-09-14T17:39:34+01:00</dc:date>
			<guid isPermaLink="false">http://www.devppl.com/forum/./viewtopic.php?p=46491#p46491</guid>
		</item>
	
	</channel>
</rss>