No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
12 Posted Topics
String.equal() return type is boolean example: String a = "not Hello" if(a.equal("Hello")){ will do whatever here if result is true} or if(!a.equal("Hello")){ will do whatever here if result is true} and so on..
when you implement an interface, you'll have to implement all methods in your class. like if interface A has methods A1 and A2, your class should implement both methods even if you don't use any of them. Abstract classes, you may override the methods that you want to customize for …
I used mySql before along with JSP and Java. also, I tried Oracle with Java, I would prefer MySql thou. anyways, anyone would work fine.
try using Integer instead of int, and btw, I think you don't need to use .toString() method.
ok, first, the get and set methods (also called Accessors and Mutators) are used to access attributes of an object and change them. like this: [CODE] class x{ int age; String name; public void setName(String n){ name = n; } public String getName(){ return name; } . . Similarly goes …
you are exceeding the array's bounds. exactly, one can't figure out what causes the error, because the manipulation is done by your code that comes before these blocks. check it again, either you go beyond index 8 or below index 0, good luck.
i'll give you these hints, create a boolean variable in class B, make it private and use accessors/mutators to access and change that variable... now you need to learn how to use accessors and mutators> GooD Luck
look at the three points given for the class Point, they tell you what each method should do, and so you have to figure out the code for each method, taking in mind the class Pair. that goes also with the class LabeledPoint, the comment next to each line tells …
if you still are using the code you posted at the first post, then the problem can be solved by simply moving a line of your code, and adding one more. the line where you do sum should be moved, and u should reset the value of price.
this is very simple,, at least do some coding.. fails!!
class level variables can be accessed by all methods. [COLOR="Green"]OutputFile summaryReport;[/COLOR] try making this a class-level variable. [COLOR="Green"] summaryReport = new OutputFile ("H:\\MaxSync\\School\\SLCC\\CIS 1030\\Spacely Sprockets\\summaryReport.txt");[/COLOR] umm.. i think u can put this in the main method,, not sure thou!!
The End.
striker3344