User Profile

Collapse

Profile Sidebar

Collapse
xdeath
xdeath
Last Activity: Mar 12 '07, 03:06 PM
Joined: Feb 3 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • xdeath
    replied to Vehicle-Taxi Program
    in Java
    hmm okay... uh im not very good at java so yea, correct me if anything's amiss..

    Code:
     
    public class Vehicle {
    	private String plateNum;
    	private String brandName;
    	private String modelType;
    	private double vehicleSpeed;
    	private double vehiclePrice;
     
    	public void setPlateNum(String plateNum) {
    		this.plateNum = plateNum;
    	}
     
    	public void setBrandName(String
    ...
    See more | Go to post

    Leave a comment:


  • xdeath
    replied to Vehicle-Taxi Program
    in Java
    Error that i got is : Vehicle2.java:3 2: illegal start of expression
    private static void addATaxi(CarLis t theCarList) {
    ^
    1 error.

    Uh, in this one, i dont think vehicle and taxi classes are even used yet? im just testing out if the main menu + receive input for the addTaxi method is working properly......
    See more | Go to post

    Leave a comment:


  • xdeath
    started a topic Vehicle-Taxi Program
    in Java

    Vehicle-Taxi Program

    Hi guys, at the moment, im rushing to get my assignment done as the dateline is soon. Haven't had much time lately, so i'm in need of some help.

    Im supposed to create a program that :
    Has a Vehicle superclass, and a Taxi subclass.

    1) Can accept new Taxi into an array
    2) Can delete old records of Taxi from the array
    3) Have to be able to retain the previous added data (which i think most likely im...
    See more | Go to post

  • xdeath
    replied to Help? JDBC or read from txt?
    in Java
    well, uh the problem is, im doing e-study, which is fully online based, and apparently, we arent being taught much -.- neither do the course content has anything regarding reading/writing from/to files. which is actually the reason why im posting here. we're expected to do something that we arent even taught. and yea, we're not covering any of the above in class, only classes, inheritance, basic logical exp, so far....
    See more | Go to post

    Leave a comment:


  • xdeath
    replied to Help? JDBC or read from txt?
    in Java
    i see, hm, im thinking of a database, seeming that reading from a file seemed to prove much problems when writing to the file for me, as well as the problem of reading. is there any where i can get more knowledge on those databases as well as code examples and explanations besides from the java.sun website? thanks again for the reply...
    See more | Go to post

    Leave a comment:


  • xdeath
    replied to Help? JDBC or read from txt?
    in Java
    um nope? im not exactly all so good with java, as i just started learning, and our lecturer already expects us to be able to do all this stuff, when we only just finished the chapter on inheritance. as for the code to save to file, i got it from googling around.

    hm, as for arrays, is it possible to read lots of data from a database? as in, many fields? i was thinking like 4 fields (price, model, reg num, speed) = a 4 dimensional array?...
    See more | Go to post

    Leave a comment:


  • xdeath
    started a topic Help? JDBC or read from txt?
    in Java

    Help? JDBC or read from txt?

    Hi guys, i've currently got an assignment, whereby, im supposed to create 2 classes, a Vehicle superclass, and a Taxi subclass.
    Vehicle class needs to have Reg Number, model, price, and Taxi is supposed to inherit those from it.

    I have done so, but now, it requires that all the data be stored in an array.

    The final program, should be able to :
    1) Add new taxi's into the program (which retains even after...
    See more | Go to post
No activity results to display
Show More
Working...