Search:

Type: Posts; User: stut

Search: Search took 0.41 seconds.

  1. Re: How to parse an multidigit in an sequence of particular digits

    No I need numeric values of this digits. So I do not understand why to convert int number to String and than get bytes of it. As I know: when I use string[0] it doesnt mean that is the first letter...
  2. How to parse an multidigit in an sequence of particular digits

    For example we have a number 1709. How to define every digit of the number. Should we cast type to string. Then to parse it with toCharArray method. And use the indexes to have an access to char...
  3. Re: Fibonacci numbers? How to define these numbers in some interval (diapazone)

    Honestly, i do not know where the main my question disppepered from this newly created topic. I hope you are not moderator, as this my sentence only was addition to the question itself. and I...
  4. Fibonacci numbers? How to define these numbers in some interval (diapazone)

    [

    --- Update ---

    This task is only the sub-task of more general task that should be done knowing the correctly of this numbers in this range
  5. Re: Is it possible to achieve the encapsulation without class

    So it means that we could not realize no method, no produce variable without class. So it is impossible unrealize (execute) encapsulation without class. Is it right?
  6. Re: Is it possible to achieve the encapsulation without class

    It was a question at JAVA testing despite the answer was open. I wrote that NO. But for exaple main() method is public so maybe it is possible. Anyway it is one of the main question here for the...
  7. Is it possible to achieve the encapsulation without class

    I mean in Java
  8. Replies
    5
    Views
    404

    Re: Recursion: Fibonacci Number Question

    public class F {


    int fibo (int f) { if (f=0)return 0;
    else if (f=1) return 1;
    else return fibo(f-1)+fibo(f-2);
    }
    System.out.print(fibo(3));

    }
  9. Re: How display the first elements and last elements of collection of objects?

    I have not code. But you could make a simple tip as a Arraylist has a substrig(index1,index2) method to display or extract appropriate objects in the sequence. I this situation I have question what...
  10. Re: How display the first elements and last elements of collection of objects?

    Or it is very simple with indexes that begins at 0 and ends with i-1. So olny by one: system.out.println(workers.get(1).to sring). Or i am not correctu in displaying it?
  11. Re: How display the first elements and last elements of collection of objects?

    Could you show how to do it in this collection Workers. It very simple as it is really to be? I surfed internet and say question about the first and the last one. And the answers were not so evident....
  12. Re: How display the first elements and last elements of collection of objects?

    I think most fittable class in this situation is Arraylist. It has the method get(). But it is awkward to show every item. Especially the last ones. The last is possible if it possible to define the...
  13. How display the first elements and last elements of collection of objects?

    For example we have the object created with the class that contain id, name and salary. The objects is posted by the salary and names if the salary is the same. What to do. We could not use indexes...
Results 1 to 13 of 13