Search:

Type: Posts; User: Alin

Search: Search took 0.17 seconds.

  1. Replies
    3
    Views
    1,870

    Re: Months of the year

    The problem is here:

    The mistake in bold:

    String[] months = {"January", "February", "March", "April", "May", "June", "July, "August", "September", "October", "November", "December"};

    the...
  2. Replies
    10
    Views
    25,410

    Re: How do I loop a switch Statement?

    Hi Arkeshen,

    Here is a solution that I could work out, please let me know if I did not understand the requirements properly or if anything is not clear:



    import javax.swing.JOptionPane ;
    ...
  3. Re: What is Method Overloading And Overriding In Java?

    Hello,

    Overriding/Overloading in java is more then just saying:

    Overridden version of the method to call (in other words, from which class in the inheritance tree) is decided at runtime based...
  4. Replies
    10
    Views
    1,359

    View Post

    Hello,

    Quick answer is NO, Java dose not support multiple inheritance.

    Here is why it dose not support:

    Lets consider the following class hierarchy:
  5. Replies
    4
    Views
    1,513

    Re: Unreachable statement problem

    Hello,

    here is in Bold the statement that is unreachable. I will intentionally not omit the [code] tags.

    static int sumEvenFib(int start, int end) {
    int fn1 = start; //fn_1
    ...
  6. Replies
    2
    Views
    829

    Re: String out of bound exception

    Hello,

    I would like to provide an example that will clarify this exception but before that we need to look at the substring(int beginIndex, int endIndex) method. The two method parameters int...
Results 1 to 6 of 6