Search:

Type: Posts; User: NewbieJavaProgrammer

Search: Search took 0.24 seconds.

  1. Re: Not saving object into Linked List

    Well it is still returning everything as Null which means it isn't saving the element in the first place. How would i go about fixing this?
  2. Not saving object into Linked List

    So I am creating a Netflix based simple application, that allows you to add movies into a list and then create playlist, etc. This is the code below


    import java.io.IOException;
    import...
  3. Call class method from another class

    So I am creating a Netflix based application for a school assignment. So yes this is homework. I created a userinterface that looks like the following


    import java.io.IOException;
    import...
  4. Replies
    2
    Views
    549

    Netflix based java project

    So before anyone gets suspicious this IS HOMEWORK. So please don't waste your time posting "Do your own homework" because I am NOT asking for answers. Now that I have that out of the way.

    Below I...
  5. Re: Converting Two dimensional array into an Array list

    SO what i have to do in this program. Is read in a folder (of the users choose run through command line) then once that is open find all the ".dat" files inside each folder inside (each folder CAN...
  6. Re: Converting Two dimensional array into an Array list

    Ok so what is a good command that can even open a file or find a folder on a desktop? I don't know how to do that at all. And i read an article that discusses the "Tree" set of data which this would...
  7. Re: Converting Two dimensional array into an Array list

    Ok so the recursive method also needs to check each directory for files ending in ".dat" so how would i be able to:
    first: call the file name in to be "recursed"
    second: make each name in first...
  8. Re: Converting Two dimensional array into an Array list

    I appreciate the quick reply. So what i am curious is with are two things at the moment

    first: Is how to write this recursive method to check all files, because all i know is that these methods...
  9. Re: Converting Two dimensional array into an Array list

    The array list would have to be formatted

    public String toString(): Implementing this method will allow us to directly print
    useful information about proteins using System.out.println(protein)....
  10. Converting Two dimensional array into an Array list

    So I am working on a homework assignment. I say that ahead of time so no one thinks i am being sneaky or what not. However My teacher is asking us to take our two dimensional array we built and...
  11. Re: Getting an ArrayIndexOutOfBoundsException

    I figured it out. I wasn't spelling the things right in the command prompt (because of the hard coding)

    and for those of you who helped me with the original model of this code i fixed that version...
  12. Re: Getting an ArrayIndexOutOfBoundsException

    What do you mean? I am passing a file title "uniprotFile" into the program under the command line if that is what you mean. Could you elaborate on your question more
  13. Getting an ArrayIndexOutOfBoundsException

    SO this is for a homework assignment. And if you look at my previous posts you will see that I am not asking for help and I have done this work by myself. That being said I have one single error left...
  14. Re: Need help with understanding a homework assignment, not asking for answers

    Could you explain this a little more please. I am having trouble with this idea. Just don't get it.

    Also do i have to use that in my program? or and if so, how would I given the code i have?
    ...
  15. Re: Need help with understanding a homework assignment, not asking for answers

    UPDATE: The code can run and terminate without errors: but no NEW file is created, so I believe the main problem is in the output located in the Main Method
  16. Re: Need help with understanding a homework assignment, not asking for answers

    Ok. so after reading a few posts online. I found a way to read the array and save into a file (at least i believe i did it correctly) but now i am receiving errors else where.

    Exception in thread...
  17. Re: Need help with understanding a homework assignment, not asking for answers

    I get an error in my For loop inside of my main


    for(int i = 0; i < extractedInfo.length; i++)
    {
    extractedInfo[i][0];
    }

    it says: Syntax error, insert "AssignmentOperator...
  18. Re: Need help with understanding a homework assignment, not asking for answers

    Ok. So after a few hours of work (and several peoples advice) i have come to this new code:


    import java.util.*;
    import java.io.*;

    public class Perser
    {
    /**
    * This is the main...
  19. Re: Need help with understanding a homework assignment, not asking for answers

    Ah yes that makes alot of sense. So even though the methods are PUBLIC, the variables in side of each are still only used within their respectied method. Unless called by something outside?
  20. Re: Need help with understanding a homework assignment, not asking for answers

    Thank you again for the help (the old C++ forums i used were filled with self centered people, who refused to even provide insight on homework). Ok so i have changed the layout to the above example,...
  21. Re: Need help with understanding a homework assignment, not asking for answers

    Wow. you guys are incredible. I really appreciate the time you have taken to helping me figure out this problem. I really like the layout provided above as well as the examples of the "Person" class....
  22. Re: Need help with understanding a homework assignment, not asking for answers

    Also he wants us to use the Tokenizer feature as well. again do not know how to implement that
  23. Re: Need help with understanding a homework assignment, not asking for answers

    Thank you for replying to my message.

    He has told us what a class is, what a constructor does, he told us ABOUT getters and setters, but i am very hazey on what exactly they do, and how to use...
  24. Need help with understanding a homework assignment, not asking for answers

    So i am brand new to Java and i am currently taking a class about it, but my problem is the teacher is awful, and i can not learn anything from him. He has given us a "simple" assignment around...
Results 1 to 24 of 25