Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Hello everyone...

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    10
    My Mood
    Lurking
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default Hello everyone...

    I am a computer repair technician with some minimal background in c and c++ and fairly new to Java... I have spent the last year learning Java via forums, tutorials, even youtube with a goal of developing an AI that will pass the Turing test. I'm pretty good at linked lists, data structures and binary trees and currently studing neural nets in Java, but I suck at GUI and Swing... Any help is appreciated... Thanks,
    Last edited by rchrispink3913; January 31st, 2012 at 10:39 PM.

  2. #2
    Member snowguy13's Avatar
    Join Date
    Nov 2011
    Location
    In Hyrule enjoying a chat with Demise and Ganondorf
    Posts
    339
    My Mood
    Happy
    Thanks
    31
    Thanked 48 Times in 42 Posts

    Default Re: Hello everyone...

    Hello, rchrispink3913! Welcome to the forums! You'll find a lot of help here. Whenever I post a question, I usually get a response within a quarter of a day!

    Good luck with your programming!
    Use highlight tags to help others help you!

    [highlight=Java]Your prettily formatted code goes here[/highlight]

    Using these tags makes your code formatted, and helps everyone answer your questions more easily!




    Wanna hear something funny?

    Me too.

  3. #3
    Junior Member
    Join Date
    Jan 2012
    Posts
    10
    My Mood
    Lurking
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default Re: Hello everyone...

    please ignore... I'm just trying a sample post with imbedded code...

     
    package ki.zoe.library;
     
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
     
    /////////////////////////////////////////////////////
    // Loader Class provides input and output serial-  //
    // ization ad flattening of Access lists           //
    //                                                 //
    /////////////////////////////////////////////////////
     
    class Loader {
     
    	Access access = new Access();
     
    	// Saves the Virutal Data Structure as a binary object to
    	// the specified file name.
    	protected void saveVDS(Access vds, String filename) {
    		access = vds;
    		FileOutputStream fos = null;
    		ObjectOutputStream out = null;
    		try {
    			fos = new FileOutputStream(filename);
    			out = new ObjectOutputStream(fos);
    			out.writeObject(access);
    			out.close();
    		} catch (IOException ex) {
    			ex.printStackTrace();
    		}
    	}
     
    	// Restores the Virtual Data Structure from the filename and
    	// returns it to an Access object.  If no file exists, then a 
    	// new blank VDS is created and then returned to the Access
    	// object.
    	protected Access restoreVDS(String filename) {
    		Access vds = new Access();
    		FileInputStream fis = null;
    		ObjectInputStream in = null;	
    		try {
    			fis = new FileInputStream(filename);
    			in = new ObjectInputStream(fis);
    			vds = (Access) in.readObject();
    			in.close();
    		} catch(IOException ex) {
    			saveVDS(vds,filename);
    		} catch(ClassNotFoundException es){
    			es.printStackTrace();
    		}
    		return vds;
    	}
    }