Thank you very much for the reply. But even if I took off that line, it doesn't print correctly. Any other suggestions??
Type: Posts; User: Sharmeen
Thank you very much for the reply. But even if I took off that line, it doesn't print correctly. Any other suggestions??
MAIN is Empty!!
Try this way:
public static void main(String[] args) {
int numValues = 8;
int[] array = randomIntArray (numValues);
printArray (array);
}
This is only to make sure that no Error occurs. Kind of fault avoidance that's why I compute it twice.
OOOOPS .. Am so sorry, I just edited the code. Thank You.
Hi all,
I have a problem with my code when I add this line:
inject=aRandom.nextBoolean();
I have a loop more than what it is supposed to be. Iterations should stop at 10 but it continues...
Hey guys,
It seems that my loop is continuing forever :(
A0 = new double[nmax][nmax];
A0_C = new double[nmax][nmax];
A0_C2 = new double[nmax][nmax];
...
Hey guys,
I have an issue, my code is around 700 lines and there is an error somewhere that leads to an infinite loop. Now, is there a way in eclipse where i can do a single step debug? which means...
I think I will go to the traditional way by Copy/paste the method as I only need to check the equality of integers and doubles.
Thanx
This is really appreciated. I will give it a try and will let you know about the results.
Thanks.
Hi all,
I'm new to Java and I used to program in C++. Now I know that there is a way in C++ to use the templates to create generic methods that can take different types of variable as input. Is this...
This may be useful for you to go through first. Draw your's and then u can post it here for checking.
Introduction to UML - Unified Modeling Language UML - SmartDraw Tutorials
Good Luck
Thx for the replies. I just sorted out myself and this thread should be closed.
Well these errors that may appear once during the compilation and once the code is ran again they may not appear.
I just want to know if there are any methods to inject errors into a java code to...
Hi again,
I just love this forum as am getting all the help I need.
Now, am working on an application of fault tolerance in Java. I have put my rules and now I need to inject transient errors into...
You rock :)
thank you very much.. Don't know how to thank you. :)
Thx for the reply. I searched my PC for the src.zip folder and couldn't find it. I went to the Oracle website to get the jdk1.7 installed it gave me an option to download something called glassfish3...
Yes I know it has samples but I want the source codes of the Java itself. I mean the header files not an example.
Hi everyone,
I want to know where can I find the source codes of the Java predefined classes like arrays, list..etc. Am using Eclipse Indigo Release 3.7.2. Thank you for helping
Regards,
Sure thing Sir. Thank you very much :)
Well it told me that it doesn't and it gave me other options to be used like ANTLR which I don't want to go through.
Well something like that with my own rules.
Thanks a lot. I will go through the mentioned classes and will see how it goes. By default Java doesn't have a parser right??
Well I want the parser to read and change then save it to another source file. It needs to change only certain parts like I mentioned above. Thanks for the quick reply.
Hi all,
Am new to the java world and I wanted to know if there is a parser provided by Java to extract certain piece of information in the code. What I want to do is to give the parser any piece of...