Search:

Type: Posts; User: R2B Boondocks

Search: Search took 0.18 seconds.

  1. Replies
    10
    Views
    152

    Re: Operator Substituion

    Alright thank you, I will try to work it out further.
  2. Replies
    10
    Views
    152

    Re: Operator Substituion

    I switched to using replaceFirst() instead of replace(). This is rather presumptuous as you could very well have something like:

    (x / y) / z; in source code.

    Any thoughts on how to work out...
  3. Replies
    10
    Views
    152

    Re: Operator Substituion

    Sure.

    Input: String test = "z = x / y; // This line sets z to the result of x divided by y."
    swapDivide(test);
    Output: z = x * y; **This line sets z to the result of x divided by y.

    The...
  4. Replies
    10
    Views
    152

    Re: Operator Substituion

    That statement was a great help....it helped me realize my responsibility was to just create methods to handle the operator swaps! Here is what I have so far now but have a couple more issues if you...
  5. Replies
    10
    Views
    152

    Re: Operator Substituion

    Easiest step first....what the output should be:

    Say this is your original file:
    z = x + y;
    c = a + b;
    h = j + k;

    Output should save each change as a new file:
    Mutation1.java
    z = x - y;
  6. Replies
    10
    Views
    152

    Operator Substituion

    Hi all,

    I need some help asap please. I have been trying to get this working for over a week. My goals:

    1) Have some source file be read in
    2) Specify what arithmetic operators to swap (+, -,...
  7. Replies
    7
    Views
    299

    Re: Need help finishing class methods

    Alright. A good place to start would be: Are there any algorithms out there that would help me complete the following two methods?:


    /**
    * Determines whether a given piece of glass would fit...
  8. Replies
    7
    Views
    299

    Re: Need help finishing class methods

    Anyone?
  9. Replies
    7
    Views
    299

    Re: Need help finishing class methods

    Apologies guys. Here is example output and directions. (Note: The "errors" I get is that every input.txt I give it, the program tells me it can't be done when I know it should be able to)
    ...
  10. Replies
    7
    Views
    299

    Re: Need help finishing class methods

    Sorry! The question would be what is wrong with my methods in Hole.java? I wrote everything below the //your code here lines in each method.
  11. Replies
    7
    Views
    299

    Need help finishing class methods

    Hey guys,

    I am new to Java and am having trouble finishing the class methods in Hole.java. I was provided reconstructor and glass. I was also told that the methods in glass are similar to those...
  12. Thread: Intro

    by R2B Boondocks
    Replies
    2
    Views
    144

    [SOLVED] Re: Intro

    Ok thank you I will try again!
  13. Thread: Intro

    by R2B Boondocks
    Replies
    2
    Views
    144

    [SOLVED] Intro

    Hi all,

    This is a test post to see if it will let me do it. I've tried posting a real question numerous times but it said post denied every time. I'm a newbie to Java and need some help...
Results 1 to 13 of 13