Thank you for the help,
I would like to ask about the output of the "names.dat"
the java output is:
John Doe
Jane Fonda
Farrah Fawcett
Keira Knightley
Johnny Cash
Another data
However, when I open the "names.dat" with notepad, it shows:
John Doe
Jane Fonda Farrah Fawcett Keira Knightley J
Hello
In java a file can have any number of classes ...but a file can have
only one public class and file name should match that public class
If you uSe an IDE it will take care of this
Thanks
V
On Nov 27, 2009, at 12:54 PM, Elvis Hektor Ratzlaff Koop wrote:
> Hi Bryan
>
> As Far I understa
Hi Bryan
As Far I understand your problem.
Your public class and your file name must be the same..
If your pulic class name is "InputFromKeyboardJOptionPane" your file
name must be
InputFromKeyboardJOptionPane.java
On Fri, Nov 27, 2009 at 12:54 PM, R Bryan Irwin wrote:
> I'm sorry about my begi
Hi all,
I can't type anything anymore in the Netbeans editor: it started when i did lab
1007: exception handling :)
I work with 6.7.1 and xp.
My keyboard is ok.
I think this is caused by some bug: does anybody know how to recover from this
exception ?
I think reinstalling Netbeans is the onl
I'm sorry about my beginner question but can't seem to find an answer.
In the following code, I have renamed the project in order to send it as
homework. Now, I receive the error 'class InputFromKeyboardJOptionPane is
public, should be declared in a file named
InputFromKeyboardJOptionPane.java'.
Hello,
Here's an example of using RandomAccessFile. I hope it helps
package randomaccessfileproject;
/**
*
* @author Andreea
*/
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
public class RandomAccessFileExample {
public static void ma