Forum: Java Aug 15th, 2009 |
| Replies: 7 Views: 14,814 you need to know that the array that you use in java is not flexible to increase the size of the array by itself, the array is a STATIC data structure.
if you make int [] arr = new int[10];
this... |
Forum: Java Aug 15th, 2009 |
| Replies: 3 Views: 720 Hi,
The only trick in the circular linked list is that the next of the last node is always pointing to the first node, instead of null, so it's simple.
when you add -->
if the list is empty... |
Forum: Java Feb 3rd, 2009 |
| Replies: 19 Views: 2,404 my programming PhD always taught me to make my own methods,
you can fit them to what you want, and that's really a good practice for programming.
try to make that algorithm, min/max is one of the... |
Forum: Java Feb 3rd, 2009 |
| Replies: 7 Views: 389 yes. verruckt2 is so correct, this is the error, check the condition in the if statement. |
Forum: Java Feb 3rd, 2009 |
| Replies: 7 Views: 389 actually I don't see any problem with your code, tell me what's exactly the problem? |
Forum: Java Feb 2nd, 2009 |
| Replies: 20 Views: 1,070 sorry , I'm also new to the forum and it's rules. |
Forum: Java Jan 31st, 2009 |
| Replies: 20 Views: 1,070 Ok I know what's wrong.
In JAVA you must declare and initialize your variables and declare them before any usage.
public class PairSimulator
{
public static void main(String[] args)
... |
Forum: Java Dec 9th, 2008 |
| Replies: 2 Views: 454 Alsalamu Alikum,
So, It's my first time to study and work on recursion functions, and it was said in the lecture that it is better than the iterative function because
and I've asked my TA in the... |