Search:

Type: Posts; User: raabhim

Search: Search took 0.17 seconds.

  1. Replies
    3
    Views
    1,354

    Re: How come 1 divide by 2 is less than 0.5 ?!

    Perfect!
    Thanks guys
  2. Replies
    3
    Views
    1,354

    How come 1 divide by 2 is less than 0.5 ?!

    Hi,

    So basically this is a game that you have to hit targets on a grid. every time there's a "hit" the hitCounter is ++ .
    in the end of the game it display a message according to your results....
  3. Replies
    2
    Views
    1,434

    Re: Iterator & ArrayList

    Right! Silly me...
    it's working now
    Thanks for your help!


    public void displayAllTitles(){
    Iterator<String> it = bestSellersNames.iterator();
    while(it.hasNext()){
    ...
  4. Replies
    2
    Views
    1,434

    Iterator & ArrayList

    Hi there,
    I have an ArrayList<String> and i'm using an Iterator loop to display all the strings one by one


    public void displayAllTitles(){
    Iterator<String> it =...
  5. Replies
    4
    Views
    1,439

    Re: Q about the String class

    just what I needed.
    Thank you very much!
  6. Replies
    4
    Views
    1,439

    Re: Q about the String class

    yup, it's working. Thank you!




    public String getPhoneNumber(String p){
    return p.charAt(0) + p.charAt(1) + p.charAt(2)+ "-" +
    p.charAt(3) + p.charAt(4) + p.charAt(5) + "-"...
  7. Replies
    4
    Views
    1,439

    Q about the String class

    Hi there.

    Is there any method in the String class that will take 1234567899 and return - 123-456-7899 ?
    Reason: get a user input for phone number and return it as a readable phone number format....
Results 1 to 7 of 7