In java Hashtable can contain more than one object with the same hashcode?
463342
yse u can.Why because u r getting the values based on the hashcode.So hashcode is unique based on the u will get that object
732432
I'm assuming you mean *only* the four common operators; as this is a very well known puzzle (called the 24 game, or something similar).\nIn that case, its actually impossible (I have written a computer program to prove this for me). Of course, its possible if you allow various other things like ! or ^, but not with just +-/*.
708472
They save duplicating code. That also means that once you get the loop code correct you don't have to test other duplicated copies of it for errors. \n\nIt also makes it easier to structure the program because the details of the loop processing are in one place.\n\nThey shorten the program so that it is easier to scan when bench checking.
784164
sure you can use that syntax and it's correct this way:\nwrite(arraylist[x]);\nusualy this is used with a for clause\nfor i:=0 to n do\n write(arraylist[i]);\nbut if you put a pice of code when ur using this i can help you fix your errors.
595895
As blueJ is Java development environment, I think you are talking about java.\n\nIn java if you put a value already in map, old vlue is replaced by new one.
501286
Not completely sure I follow the question.  But if you are trying to store parameters, repeating units, etc.. I would recommend a generic "code" table that can house multiple types of values.  You could have a table with a Type, subtype, values and description that could hold all kinds of values.  \n\nType: Construction\nSubType: tool\nValue: hammer\nDesc: tool to pound on things\n\nnext record\nType: Construction\nSubType: measurement\nValue: inches\nDesc: english measurement\n\nnext record\nType: Construction\nSubType: measurement\nValue: centimeters\nDesc: metric measurement\n\nnext record\nType: Query\nSubType: Parameter\nValue: RunDate\nDesc: Time surrounding query execution\n\n\nAnd so on and so on.....\n\nselect * from code_table where Type = 'Construction'\nand SubType = 'measurement'\n\nIt is easy to replicate, extend and edit.\n\nGood Luck in pursuing your answers.
1011128
Please post the snippet of code that does not work. In general, you need to check an array's length before yo uaccess its elements - it's called defensive programming, and good programmers should employ it.
108544
Your object will be passed by reference because\nthat's how Java passes all objects.  Only the\nprimitive types like "int" are passed by value.
741363
use if (string1.equals(string2)) not if (string1 == string2), because the first one looks to see if the strings have the same content, the second one looks to see if the strings share the same memory location.
901296
I think the most problem lies on your use of datatypes and variables. There is an error assigning teman[0] to some value, as teman is not declared as array of objects. It should be like this:\nteman.word[0] = "something". Anyway, you have set the word access priority to private, so you need to provide the functions to get and set the values into it, such as: public void setWord(int, string) and public string getWord(int) which will insert the word according to the number of element specified by int in setWord, and return the current value of word in getWord.\n\n\n\nNext, teman.putAtPosition("ada",3) and teman.toString() also cant be accepted because you have referred a method to which the object doesnt hhave it. This is again about the teman object which is misreferred by you as a string object.
29500
I think c is true becuse a varible name can not contain any thing other than lettera and digit if you add _ in letters.\nBut a class may not have constructor when default constructor will be used.
511341
I'm not sure if I understood correctly but check out the pigeonhole principle
826904
for (int i = 0; i < arrayA.length; i++)\nfor (int j = 0; j < arrayA[0].length; j++)\n  arrayC[i][j] = arrayA[i][j] + arrayB[i][j];\n\nSystem.out.println("  Values for arrayC");\nfor (int i = 0; i < arrayC.length; i++)\n   for (int j = 0; j < arrayC[0].length; j++)\n   {\n      System.out.print(arrayC[i][j]);\n      if(j < arrayC[0].length - 1)\n        System.out.print("   ");\n      else\n        System.out.println("");\n  }
17733
You may use the "Application" object to store string arrays or a list of "chat instance" objects which in turn may have their chat transcripts.\nThe short answer is YES but:\n1) As you would be storing data on server memory (state as we call that), you will produce "affinity" that's you will not be able to host your site on more than one computer at a time. This may become a scalability problem.\n2) Be careful when writting to the Application object, because it may be accessed by different threads at a time, so you have to Application.Lock and Unlock as needed.
676635
the logic is u should check one data entry frm each array and the one which is greater is to be put at the place of third array
54549
Both have the same number
327657
class Employee {\n   String employeeName;\n   int employeeNumber;\n   String employeeLevel; // you may want to change this to an integer.\n   String jobDescription;\n   double salary;\n....\n}