The values of foo and bar are:

```
String line1 = new String("c = 1 + 2 + 3") ;
StringTokenizer tok = new StringTokenizer(line1, "+=");
String foo = tok.nextToken();
String bar = tok.nextToken();
```


a. foo is “c ”, bar is “ = ”.
b. foo is “c”, bar is “ ”.
c. foo is “ = ”, bar is “ + ”.
d. foo is “c ”, bar is “ 1 ”.

d. foo is “c ”, bar is “ 1 ”.

Computer Science & Information Technology

You might also like to view...

When you send email, it goes directly from your computer to the computer of the email recipient

Indicate whether the statement is true or false

Computer Science & Information Technology

Which of the following is a fundamental security rule and best practice?

a. Change MAC addresses b. Disable IP address sharing and port sharing c. Configure the default gateway so packets are sent to the next hop d. Disable any unused switch ports

Computer Science & Information Technology