User Profile

Collapse

Profile Sidebar

Collapse
Fozzi
Fozzi
Last Activity: Aug 27 '07, 10:46 PM
Joined: Apr 16 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Fozzi
    replied to Having trouble writing to a file
    in Java
    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
    See more | Go to post

    Leave a comment:


  • Fozzi
    replied to Having trouble writing to a file
    in Java
    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 extra
    See more | Go to post

    Leave a comment:


  • Fozzi
    replied to Having trouble writing to a file
    in Java
    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 report
    See more | Go to post

    Leave a comment:


  • Fozzi
    replied to Having trouble writing to a file
    in Java
    Hmm messed about with the file seperator stuff didnt seem to change anything, got to be a problem somewhere else.
    See more | Go to post

    Leave a comment:


  • Fozzi
    started a topic Having trouble writing to a file
    in Java

    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
    ...
    See more | Go to post

  • Fozzi
    replied to Help with conversions in java
    in Java
    thanks alot for the help
    See more | Go to post

    Leave a comment:


  • Fozzi
    replied to Help with conversions in java
    in Java
    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...
    See more | Go to post

    Leave a comment:


  • Fozzi
    replied to Help with conversions in java
    in Java
    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 appreciated
    See more | Go to post

    Leave a comment:


  • Fozzi
    replied to Help with conversions in java
    in Java
    uhm had a look at them and it just isnt making any sense
    See more | Go to post

    Leave a comment:


  • Fozzi
    replied to Help with conversions in java
    in Java
    Uhm no i havnt been through 1 of those yet, could u give me a link?

    Thanks for the reply
    See more | Go to post

    Leave a comment:


  • Fozzi
    started a topic Help with conversions in java
    in Java

    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
    See more | Go to post
No activity results to display
Show More
Working...