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?
Type: Posts; User: NewbieJavaProgrammer
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?
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...
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...
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...
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...
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...
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...
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...
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)....
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...
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...
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
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...
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?
...
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
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...
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...
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...
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?
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,...
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....
Also he wants us to use the Tokenizer feature as well. again do not know how to implement that
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...
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...