Answer:
Simple Java question about command line arguments
Edit: figured it out myself, args[0] == "one" should be args[0].equals("one")
public Class Test{
public static void main(String[] args) {
System.out.println(args[0]);
if(args[0] == "one")
{ System.out.println("onetest");
}
}
}
it compiles and everything, and when I type
> java Test one
into the command line, this is my output
> one
what am i doing wrong, and why isn't it displaying "onetest" it printed "one" because args[0] is equal to "one," but somehow args[0] isn't "one" because it doesn't print "onetest" ???
expected output is
> one
> onetest
Answer:
16
Explanation:
If you follow the line of code and add 1, 2, and then 3, 10 + 1 + 2 + 3 = 16.
Please, need Brailliest. if you need any further assistance let me know.
ANSWER 9:
The offset address of an element in row 16 and column 3 = 0100000011 (10 bits address)
Explanation:
The size of bit fields for row and column numbers should be big enough to accommodate the highest possible row and column numbers.
For 57 × 10 matrix M will have 6 bits for rows (26=64 so 6 bits can accommodate 57 values) and 4 bits for columns (24 =16 so 4 bits can accommodate 10 values). For offset address of an element in row 16 and column 3:
6 bits of row address will be the binary value of 16 = 010000
4 bits of column address will be the binary value of 3 = 0011
Now, for offset address of an element in row 16 and column 3 will be the concatenation of row and column address = 010000 concat 0011 = 0100000011 (10 bits address)