× Didn't find what you were looking for? Ask a question
Top Posters
Since Sunday
w
5
a
3
j
2
a
2
t
2
u
2
r
2
j
2
j
2
l
2
d
2
y
2
New Topic  
Stromile Stromile
wrote...
Posts: 299
Rep: 0 0
6 years ago
If you want to store the value "Harry Potter" in the String variable name, which of the following statements could you use?
a.   String name = "Harry Potter";
b.   String name = new String("Harry Potter");
c.   String name = "Harry" + " " + "Potter";
d.   String name = new String("Harry" + " " + "Potter");
e.   Any of these would work
Read 82 times
2 Replies
Replies
Answer verified by a subject expert
StingerStinger
wrote...
Posts: 310
Rep: 4 0
6 years ago
Sign in or Sign up in seconds to unlock everything for free
1

Related Topics

wrote...
3 years ago
thank you
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1530 People Browsing
 126 Signed Up Today
Related Images
  
 135
  
 232
  
 110
Your Opinion
Which of the following is the best resource to supplement your studies:
Votes: 365