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')...
Type: Posts; User: razakhan
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')...
i know what they do, i just dont know how to apply them here
that is exactly what i dont know how to do.
input: 1100111
current output : 1100111
desired output: 0011000
import java.util.Scanner;
import java.io.File;
import java.io.IOException;
public class BitStringsClient
I'm just trying to get the individual numbers out.
newstr = secondstr.substring(index, (index + 1));
System.out.print(newstr);
Where would the operator go? Have I done this correctly so far?
Well, I did do your suggestions. Now what? how do i perform the operation itself?
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'...
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...