Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~2K People Reached
Member Avatar for ttboy04

How do I create a method header that takes a string as an argument and returns the characters in the argument as a set. Please only reply if you know the answer. Thanks. [CODE]public class Food { private TreeSet<String> myList = new TreeSet<String>(); public Food() { super(); myList = new …

Member Avatar for ttboy04
0
101
Member Avatar for ttboy04

hello, I have called getFruits method from another class (another class is called vegetables). I can't seem to add the names of the fruits in myTable TreeSet in class Test. The error I am getting is "cannot find symbol - variable length". Can anyone help me. Thanks [CODE]public class Test …

Member Avatar for ttboy04
0
132
Member Avatar for ttboy04

Hello, I know how to clean install operating system. What I want to know is during installation of Dells Windows Vista operating system on Dell Inspiron 1525 laptop, will it ask for product id or the product key? The product id is in the windows activation section (my computer, right …

Member Avatar for sysopt
0
83
Member Avatar for ttboy04

Hello, I am having problems in bMethod. The program compiles but there is no output display for bMethod. I am trying obtain a set from aMethod and assign this set to a suitable local variable in bMethod. Which I think where the problem is. I want trying to display both …

Member Avatar for Taywin
0
158
Member Avatar for ttboy04

Hello, I am getting "non-static variable friends cannot be referenced from a static context" error msg when I complie this program. If I create TreeSet inside the Names method body there is no errors when compiling and it works but that is not how I want it work. Could someone …

Member Avatar for ttboy04
0
141
Member Avatar for ttboy04

Hello, I don't have technical problem. I was just thinking the difference between arrays and SQL. I am currently learning OOP in java and C# but my employment history is based on SQL Server. So I was thinking about this subject in my head and I don't see why bother …

Member Avatar for samaru
0
138
Member Avatar for ttboy04

Hello, When random generates an output, it cannot show duplicate strings. So for example the output I am getting (randomly) is, "Freddy, Freddy, Jane" when it should be "Freddy, Jane". I have to hardore so I cannot use Sets or ArrayList, Contains or for anything like that. Also no Stringbuilder. …

Member Avatar for aspire1
0
134
Member Avatar for ttboy04

Hello, I hope my query does not voilate the forum rules. I going to purchase a 23" monitor but cannot decide with one to buy. Dell ST2310 23 has 250 cd/m Brightness with 50000:1 contrast ratio. the other one, Dell SP2309W 23, has 300 cd/m Brightness with 80000:1 contrast ratio. …

Member Avatar for ttboy04
0
120
Member Avatar for ttboy04

Hello, My ouput is showing as... "1 2 3 (10)(23)(29)" when it should be... "1(10) 2(23) 3(29)" I don't think I am too far off. Here's the code and thanks in advance. // int[] Groups = {10, 23, 29}; in the constructor public String toString() { String tempStringB = ""; …

Member Avatar for ttboy04
0
104
Member Avatar for ttboy04

Hello, the following code is not exactly working properly. Bascally when I enter + in the dialog box it escape but still increments in the calculation. So for instance if I first enter a word "hello" then I click OK button then I enter word "there" then I click OK …

Member Avatar for ttboy04
0
143
Member Avatar for ttboy04

Hello, For java interface, In one class I have the following code public class ObjectA { public void SampleA() { //do something 1 } public void SampleB((int aPosition) { // user enter some value } } I have another class which is not related to the other class, only interested …

Member Avatar for ttboy04
0
152
Member Avatar for ttboy04

I have been asked to write a public method called Caught() which takes a single argument of type LittleAlien and returns no result, for the AlienGame class. The method should check whether the argument occupies a stone corresponding to the stone occupied by the BigAlien. If so, the health of …

Member Avatar for ttboy04
0
158
Member Avatar for ttboy04

I want to make an object move to a new height from the user request. My code below does not do that. Where am I going wrong. thanks in advance. /* instance variables */ private Aobject object; public void moveObject () { int number; { number = Integer.parseInt(Dialog.request("Enter new height?")); …

Member Avatar for ttboy04
1
92
Member Avatar for ttboy04

Hello, What I want to do is reset the pig's position to 0 and it's colour to pink. I don't how if I amended the the constructor correctly so the final line sends a resetCount() message to the newly created Animal object. The above code is not working because nothing …

Member Avatar for ttboy04
0
257
Member Avatar for ttboy04

I am trying to override setColour in the subclass callled ObjectB in the public void setColour(Colour xColour) method. So the OBjectB cannot change to purple. Can you see where I have gone wrong because the ObjectB is currently changing to purple colour. Please reply only if you know the answer. …

Member Avatar for ttboy04
0
91
Member Avatar for ttboy04

Hello, I am trying output number of repetion from user request. So basically there will be repetition print out of the times table when the user enter in the "Enter repetition" dialogbox. For example in the "Enter repetition" dialogbox, i will enter 2, then in "Which timestable do you want" …

Member Avatar for phoenix911
0
90