Search:

Type: Posts; User: imrllyhandsome

Search: Search took 0.11 seconds.

  1. Replies
    4
    Views
    1,489

    Re: Recursion /String problem

    ok got it, will check
    sweet, got it to work! thx

    public class changePi {



    public String changeToPi(String str){
    String total = "";
  2. Replies
    4
    Views
    1,489

    Re: Recursion /String problem

    Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 4
    at java.lang.String.substring(Unknown Source)
    at changePi.changeToPi(changePi.java:12)
    at...
  3. Replies
    4
    Views
    1,489

    Recursion /String problem

    So I am new to java and been practicing recursion with recursion practices from codingbat


    The problem im working on is this
    CodingBat Java Recursion-1 changePi


    and here's my code for it
Results 1 to 3 of 3