Search:

Type: Posts; User: hurrah

Search: Search took 0.09 seconds.

  1. Replies
    5
    Views
    1,977

    Re: Simple java beginners question (for school)

    You can try for this
    public String rotateStringCW(String str, int no){
    int N=str.length();
    String str1= str.substring(N-no,N)+str.substring(0,N-no);
    return str1;
    }
  2. Thread: Java Logic

    by hurrah
    Replies
    6
    Views
    1,308

    Re: Java Logic

    I think the problem given is incomplete
  3. Thread: Counter

    by hurrah
    Replies
    2
    Views
    1,248

    [SOLVED] Re: Counter

    In each subclass declare a static variable counter.
    Increment it in the constructor itself
    for e.g
    class Cylinder extends Solids{
    static int counter1;
    Cylinder(){
    counter1=counter1+1;
    }
  4. Thread: Hello

    by hurrah
    Replies
    1
    Views
    774

    Hello

    Hi everybody!
    :o
Results 1 to 4 of 4