Search:

Type: Posts; User: razakhan

Search: Search took 0.06 seconds.

  1. Replies
    18
    Views
    3,299

    Re: Bit Strings in Java

    While the site was down, i figured out the not part.


    charValue = secondstr.charAt(index);
    http://www.javaprogrammingforums.com/newreply.php?do=postreply&t=13796 if(charValue != '0')...
  2. Replies
    18
    Views
    3,299

    Re: Bit Strings in Java

    i know what they do, i just dont know how to apply them here
  3. Replies
    18
    Views
    3,299

    Re: Bit Strings in Java

    that is exactly what i dont know how to do.
  4. Replies
    18
    Views
    3,299

    Re: Bit Strings in Java

    input: 1100111
    current output : 1100111
    desired output: 0011000


    import java.util.Scanner;
    import java.io.File;
    import java.io.IOException;

    public class BitStringsClient
  5. Replies
    18
    Views
    3,299

    Re: Bit Strings in Java

    I'm just trying to get the individual numbers out.
  6. Replies
    18
    Views
    3,299

    Re: Bit Strings in Java

    newstr = secondstr.substring(index, (index + 1));
    System.out.print(newstr);

    Where would the operator go? Have I done this correctly so far?
  7. Replies
    18
    Views
    3,299

    Re: Bit Strings in Java

    Well, I did do your suggestions. Now what? how do i perform the operation itself?
  8. Replies
    18
    Views
    3,299

    Re: Bit Strings in Java

    First, my teacher wants us to use a text file for the assignment.
    My data:
    Input:
    101 OR 011
    101 AND 011
    NOT 1100111
    The problem is I don't know what to put exactly in the final "if'...
  9. Replies
    18
    Views
    3,299

    Bit Strings in Java

    Hello.
    I was writing a java code for class and I was unable to figure out how strings and sub-strings work. Can anyone provide some insight on the program.
    Here is the problem: Given a bit string...
Results 1 to 9 of 9