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.
Type: Posts; User: ajw1993
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.
yes=No<
yes=No<
yes=No<
yes=Yes<
yes=Yes<
yes=Yes<
yes=Yes<
yes=Yes<
yes=No<
yes=No<
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
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...
yeah i only changed it to see if it was reading the yes n no's.
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
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
import java.util.*;
public class Vehicle
{
// instance variables - replace the example below with your own
private String group,vehID, regNo,...
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...