Search:

Type: Posts; User: hurrah

Search: Search took 0.37 seconds.

  1. 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
    449

    Re: Java Logic

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

    by hurrah
    Replies
    2
    Views
    272

    [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
    161

    Hello

    Hi everybody!
    :o
Results 1 to 4 of 4