Type: Posts; User: Johnathanrs

Search: Search took 0.15 seconds.

  1. Java Left Recursive Parse tree question

    I am trying to get a better grasp of recursion and was practicing using common problems. On the attached photos right side, the parse tree shows (n-1) + (n-2). Only the (n-1) is outputing the value...
  2. Placing integers in linked list from text file

    Trying to read integers from a text file and place them in a linked list in order. Not sure what I am doing wrong. Program is compiling and running fine, just not the way I am intending when I am...
  3. Re: Stack - For loop not returning proper result

    Self-learning. I started off trying to learn what a stack is and diverged on my own path from the core lessons taught. Not focusing on terminology or what it is technically called at this...
  4. Stack - For loop not returning proper result

    Below is a method that is suppose to insert a value inside a stack based on the index. I thought it would be easier to copy the value, if any, that was in the index into the variable holder and...
  5. Replies

    Beginner Question length method

    Given a string, return a version where all the "x" have been removed. Except an "x" at the very start or end should not be removed.

    public String stringX(String str) {
    String a = "";
    for (int...
  6. Replies

    Re: Beginner Java Method

    If it possible to not use the length method? I figured I could get it working with the substring method, but I am having problems.
  7. Replies

    Beginner Java Method

    Beginner warm up problem that I can't figure out why isn't working. Thanks for any assistance in advance. (Note: Trying to use substring method not charAt() method.)

  8. [SOLVED] Insertion points in Array using Binary Search using Comparable

    Can't figure out what's wrong. Operator is undefined for argument type. Error is located at the end of the binarysearch method array[position] < key

    import java.util.Arrays;

    public class...
Results 1 to 8 of 8