Search:

Type: Posts; User: imrllyhandsome

Search: Search took 0.25 seconds.

  1. Replies
    4
    Views
    422

    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
    422

    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
    3
    Views
    716

    Re: Adding odd numbers from 1 to 15

    did the exercise myself for practice
    how do i wrap this in java code?


    ok, so I read your code, and I think you should think it out on paper before even writing the code. Figure out how you...
  4. Replies
    3
    Views
    261

    Re: Java beginner

    I am a beginner to java as well, so thought this might be good practice for me. Here's my code
    <<<<<<<<<<<<<< code removed
  5. Replies
    4
    Views
    422

    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 5 of 5