Java - Can Anyone Help?
Merkaba
Digital Harmony Join Date: 2002-01-24 Member: 22Members, Retired Developer, NS1 Playtester
![Merkaba](http://www.archwolf.net/merkaba/avatars/dog.gif)
in Off-Topic
<div class="IPBDescription">MyIO.class</div> I'm reading through my tutorial sheets for my Java classes, and I've come across a part where you need to use MyIO.class in order to have the user input values to the program. We've been given the MyIO.java, which I have compiled with no problems, but when I import the class into my own package with the line " <b>import MyIO;</b> ", I get the error:
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->IOTest.java:9: '.' expected
import MyIO;
^<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
I asked a friend and he suggested putting '.*' just after MyIO, to make it load up everything, but now I get the error:
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->IOTest.java:9: package MyIO does not exist<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
The MyIO.class file is in the same folder as my 'TestIO.java' file. Has anyone had any experience with this? All of my examples state that you type import MyIO;, but as I've said this isn't working. Arg!
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->IOTest.java:9: '.' expected
import MyIO;
^<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
I asked a friend and he suggested putting '.*' just after MyIO, to make it load up everything, but now I get the error:
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->IOTest.java:9: package MyIO does not exist<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
The MyIO.class file is in the same folder as my 'TestIO.java' file. Has anyone had any experience with this? All of my examples state that you type import MyIO;, but as I've said this isn't working. Arg!
Comments