Search:

Type: Posts; User: Sharmeen

Search: Search took 0.08 seconds.

  1. Re: Why the Random pre-defined functions create an error in the code?

    Thank you very much for the reply. But even if I took off that line, it doesn't print correctly. Any other suggestions??
  2. Replies
    3
    Views
    1,158

    Re: Printing an array.

    MAIN is Empty!!

    Try this way:

    public static void main(String[] args) {
    int numValues = 8;
    int[] array = randomIntArray (numValues);
    printArray (array);
    }
  3. Re: Why the Random pre-defined functions create an error in the code?

    This is only to make sure that no Error occurs. Kind of fault avoidance that's why I compute it twice.
  4. Re: Why the Random pre-defined functions create an error in the code?

    OOOOPS .. Am so sorry, I just edited the code. Thank You.
  5. Why the Random pre-defined functions create an error in the code?

    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...
  6. Replies
    1
    Views
    1,275

    [SOLVED] Infinite loop issue

    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];
    ...
  7. Replies
    1
    Views
    1,881

    [SOLVED] Single step debug in Eclipse

    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...
  8. [SOLVED] Re: How to create a Java generic method, similar to a C++ template method?

    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
  9. [SOLVED] Re: How to create a Java generic method, similar to a C++ template method?

    This is really appreciated. I will give it a try and will let you know about the results.
    Thanks.
  10. [SOLVED] How to create a Java generic method, similar to a C++ template method?

    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...
  11. Re: Can help me slove my question please . Seriously need help

    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
  12. Replies
    3
    Views
    1,621

    [SOLVED] Re: Error Injection

    Thx for the replies. I just sorted out myself and this thread should be closed.
  13. Replies
    3
    Views
    1,621

    [SOLVED] Re: Error Injection

    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...
  14. Replies
    3
    Views
    1,621

    [SOLVED] Error Injection

    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...
  15. Replies
    6
    Views
    1,863

    Re: Java source classes in Eclipse INDIGO

    You rock :)
    thank you very much.. Don't know how to thank you. :)
  16. Replies
    6
    Views
    1,863

    Re: Java source classes in Eclipse INDIGO

    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...
  17. Replies
    6
    Views
    1,863

    Re: Java source classes in Eclipse INDIGO

    Yes I know it has samples but I want the source codes of the Java itself. I mean the header files not an example.
  18. Replies
    6
    Views
    1,863

    Java source classes in Eclipse INDIGO

    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,
  19. Replies
    10
    Views
    1,769

    Re: How to start a Java parser

    Sure thing Sir. Thank you very much :)
  20. Replies
    10
    Views
    1,769

    Re: How to start a Java parser

    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.
  21. Replies
    10
    Views
    1,769

    Re: How to start a Java parser

    Well something like that with my own rules.
  22. Replies
    10
    Views
    1,769

    Re: How to start a Java parser

    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??
  23. Replies
    10
    Views
    1,769

    Re: How to start a Java parser

    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.
  24. Replies
    10
    Views
    1,769

    How to start a Java parser

    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...
Results 1 to 24 of 25