Search:

Type: Posts; User: NightFire91

Search: Search took 0.22 seconds.

  1. Replies
    0
    Views
    1,732

    Partitioning the array

    Partition the array using the first element as the pivot, and 0 as the first position, and the length - 1 as the last position. Have you to use this algorithm:


    public class partition {
    ...
  2. Replies
    1
    Views
    1,316

    ArrayIndexOutOfBoundsException

    Hi,

    I have this code which is meant to reverse the array a, however I get a message ArrayIndexOutOfBoundsException - why is this, and how do I correct the code to not get this problem?

    public...
  3. Replies
    2
    Views
    1,040

    interface class ActionListener

    The question is as follows: The following is a listing of the interface class actionListener from the Java API:


    package java.awt.events;

    import java.util.EventListener;

    public interface...
  4. Replies
    2
    Views
    526

    Output an int i to a file

    The Question is as follows: Explain the difference between the output of the following two fragments of code for outputting an int i to a file

    i)


    PrintWriter outfile = new PrintWriter(new...
  5. Replies
    3
    Views
    476

    The value of x

    double x = 7 / 2 + 1.5; I think the answer is 5

    If n has the value 3, what is the value of the expression:

    2 + n * 2 > 9

    Thanks in advance,

    NightFire91
Results 1 to 5 of 5