Search:

Type: Posts; User: ajw1993

Search: Search took 0.09 seconds.

  1. Re: setting a boolean in a field when being read from a file

    thank you man it works . can you do something else for me im just confused on how to write a test class on testing how to create 3 objects and adding them to an array list.
  2. Re: setting a boolean in a field when being read from a file

    yes=No<
    yes=No<
    yes=No<
    yes=Yes<
    yes=Yes<
    yes=Yes<
    yes=Yes<
    yes=Yes<
    yes=No<
    yes=No<
  3. Re: setting a boolean in a field when being read from a file

    it prints out the yes n no in each line, so it means that it reads what i want to storee, but not store it
  4. Re: setting a boolean in a field when being read from a file

    no it kept saying false when trying to store them
    >


    import java.util.*;
    public class Vehicle
    {
    // instance variables - replace the example below with your own
    private String...
  5. Re: setting a boolean in a field when being read from a file

    yeah i only changed it to see if it was reading the yes n no's.
  6. Re: setting a boolean in a field when being read from a file

    it does it reads both yes n no in the order of the lines which is good , but i need to store them in a boolean
  7. Re: setting a boolean in a field when being read from a file

    it reads in the file perfect
    , but the boolean field always says false when im trying to store that data which has to be either yes or no depending on what it says on the line in the file
  8. Re: setting a boolean in a field when being read from a file

    import java.util.*;
    public class Vehicle
    {
    // instance variables - replace the example below with your own
    private String group,vehID, regNo,...
  9. setting a boolean in a field when being read from a file

    Hello i need help i have to read in a file , but one of the tokens in the file is either yes or no depending on if the vehicle has air con or not.
    how do i change the boolean field to true if it is...
Results 1 to 9 of 9