My current working directory is
C:\Documents and Settings\Fozzi\ assignment7
assignment 7 being the main project folder that i am working from there are several folders within and i created the data folder with the txt file in it, in assignment 7
User Profile
Collapse
-
think its something to do with the directopry of the file its being saved to
File file = new File(System.get Property("user. dir") + "\\data\\flight s.txt");
my flights file is premade and is in
C:\Documents and Settings\Fozzi\ assignment7\dat a\flights.txt
is that the correct path? maybe i need to add something extraLeave a comment:
-
Im using netbeans to do it, and the try and catch blocks just say somethings wrong when i try and add the info to the file,. not sure where i can find the full error message reportLeave a comment:
-
Hmm messed about with the file seperator stuff didnt seem to change anything, got to be a problem somewhere else.Leave a comment:
-
Having trouble writing to a file
Hey all
I have been working on a project which allows me to write to a file and retrieve from that file, but i having trouble with it
These are my inputs:
private int flightno;
private int sourceairportco de;
private int destinationaipo rtcode;
private String takeofftime;
private String landingtime;
These are variables at the top declared
... -
-
ok sorry about that guys was in a bit of a rush last night, i sat down this morning and got the basics sorted here is my code:
private void cmdConvertActio nPerformed(java .awt.event.Acti onEvent evt) {
int cm = (int)((Double.p arseDouble(txtc m.getText()))
* 2.54);
lblOutput.setTe xt(cm + " inches ");
However there...Leave a comment:
-
could u just give me a little help with the coding because i looked at the link and its fareheit but could u help me with the coding for cm to ft and inches, would be much appreciatedLeave a comment:
-
-
Uhm no i havnt been through 1 of those yet, could u give me a link?
Thanks for the replyLeave a comment:
-
Help with conversions in java
Hey all, i recently started java programming and im a bit stuck with it all and just wondered if u could help. What i am trying to do id to convert cm to ft and inches, i have the jframe set up with a text field for entering the cm and a text field ready for the output with a button for the convert. However i have only just started, so could someone possibly help me out with the code please to set me on my way? would be much appriciated
No activity results to display
Show More
Leave a comment: