Results 1 to 11 of 11
Thread: Tlouvierre
- 05-22-2009, 05:33 PM #1
Member
- Join Date
- Apr 2009
- Location
- I live Stafford Texas right outside of Houston.
- Posts
- 78
- Rep Power
- 0
Tlouvierre
[code]
publicclassDVD
{
public static void main(String[] args);
private String name;
private int itemNumber;
private int stockQuantity;
private double price;
public DVD(String name, int itemNumber, int stockQuantity, double price){
this.name = name;
this.itemNumber = itemNumber;
this.stockQuantity = stockQuantity;
this.price = price;
}
public String toString(){
return "DVD Title: " + this.name + "\n" +
"Item Number: " + this.itemNumber + "\n" +
"Stock Quantity: " + this.stockQuantity + "\n" +
"Price: " + this.price + "\n";
}
public String getName(){
return this.name;
}
public void setName(String name){
this.name = name;
}
public int getItemNumber(){
return this.itemNumber;
}
public void setItemNumber(int itemNumber){
this.itemNumber = itemNumber;
}
public int getStockQuantity(){
return this.stockQuantity;
}
public void setStockQuantity(int stockQuantity){
this.stockQuantity = stockQuantity;
}
public double getPrice(){
return this.price;
}
public void setPrice(double price){
this.price = price;
}
}[code]
error
javac: invalid flag: E:\IT 215 Java Programming\publicclassDVD.Java
Usage: javac <options> <source files>
use -help for a list of possible options
Tool completed with exit code 2
I am not sure what this means and it is the only preventing me from making my project function. Can you help?
-
1) How are you compiling this program? With an IDE or on the command line? The problem here is not with the code per se, but the actual statements calling the java compiler.
2) Please correct your code tags. The bottom tag has a backslash:
[/code]
- 05-22-2009, 06:33 PM #3
Suggestions...
tlouvierre... a couple of suggestions:
- Please use a meaninful title for your posts. "tlouvierre" does not indicate what the problem is. "What does "invalid flag" error mean?" would have been a much better descriptive title.
- So far, you have never indicated if the help you have recieved (in previous posts) was useful and much less have thanked people for trying to help you. That is not a very good way to try to get further help on forums.
CJSLChris S.
Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.
- 05-25-2009, 04:46 PM #4
Member
- Join Date
- Apr 2009
- Location
- I live Stafford Texas right outside of Houston.
- Posts
- 78
- Rep Power
- 0
response to post I have received.
Hello and How are you today? Well, to answer your implied question. I have a lot of trouble with Java Forums and getting a response. One time and one time only did I get a real answer and that was from and India guy which I do not have his name but he helped by telling me to put the words together instead of listing them apart for the public class and it worked but as far as anything else that I have asked questions on I get the run around and no answer at all. Not even a try but its ok because I figured it out myself. Thank you no applause. If I had just tried instead of panicing I would have had it.
- 05-25-2009, 05:21 PM #5
Member
- Join Date
- Apr 2009
- Location
- I live Stafford Texas right outside of Houston.
- Posts
- 78
- Rep Power
- 0
- 05-25-2009, 05:30 PM #6
Member
- Join Date
- Apr 2009
- Location
- I live Stafford Texas right outside of Houston.
- Posts
- 78
- Rep Power
- 0
Thank you to RamyaSivaKanth for helping me to complete a project in my Java Programming class.
- 05-25-2009, 05:31 PM #7
Member
- Join Date
- Apr 2009
- Location
- I live Stafford Texas right outside of Houston.
- Posts
- 78
- Rep Power
- 0
I would like to know why conventional colleges chose to teach C++ and online colleges like University of Phoenix teach JAVA?
- 05-25-2009, 06:15 PM #8
hhhmmm...
I'm not going to answer you the way I feel like answering you (counting patiently to 1000... 1, 2, 3, ...).
It's sad that you feel that the forums don't help you. I hope you have better luck with you're future posts.
CJSLLast edited by CJSLMAN; 05-25-2009 at 06:16 PM. Reason: corrected a typo...
Chris S.
Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.
- 05-27-2009, 06:21 PM #9
Member
- Join Date
- Apr 2009
- Location
- I live Stafford Texas right outside of Houston.
- Posts
- 78
- Rep Power
- 0
Shutting me out
I did not mean to implie that I have not recieved any help from Java. I just meant that I was still working on the errors when I asked you to help and I figured out most of the errors myself. I thought you would be happy about that. Java Forums speaks in Java code and I don't understand it. It is not plain enough english for me. Sorry. I will look else where.
- 05-27-2009, 08:11 PM #10
hey... no problem
No use in getting all upset... I'm not "shutting you out". We probably have a language misunderstanding someplace along the line. If you noticed, those were suggestions I gave you. Also, it's good for you to figure out the problems yourself... it means you're learning.
Again... I hope you get the the help you're looking for in future posts.
Luck,
CJSLChris S.
Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.
- 05-28-2009, 12:14 AM #11
Member
- Join Date
- Apr 2009
- Location
- I live Stafford Texas right outside of Houston.
- Posts
- 78
- Rep Power
- 0
Similar Threads
-
tlouvierre
By tlouvierre in forum New To JavaReplies: 5Last Post: 05-28-2009, 05:03 AM -
tlouvierre
By tlouvierre in forum New To JavaReplies: 5Last Post: 05-13-2009, 08:16 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks