Search:

Type: Posts; User: Johnathanrs

Search: Search took 0.10 seconds.

  1. Re: Stack - For loop not returning proper result

    @Cornix
    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...
  2. 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...
  3. Replies
    2
    Views
    795

    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...
  4. Replies
    3
    Views
    1,256

    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.
  5. Replies
    3
    Views
    1,256

    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.)

    ----------------------
    ...
  6. [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 6 of 6