Top Posters
Since Sunday
k
3
r
3
j
3
V
3
l
3
2
J
2
1
2
n
2
O
2
h
2
d
2
New Topic  
zar zar
wrote...
Posts: 458
Rep: 1 0
4 years ago
Suppose a method p has the following heading:

public static int[] p()

What return statement may be used in p()?

▸ return {1, 2, 3};

▸ return 1;

▸ return int[]{1, 2, 3};

▸ return new int[]{1, 2, 3};
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


Edition: 10th
Author:
Read 81 times
1 Reply
Replies
Answer verified by a subject expert
shawntageshawntage
wrote...
Posts: 392
4 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here

Related Topics

zar Author
wrote...

4 years ago
this is exactly what I needed
wrote...

Yesterday
Good timing, thanks!
wrote...

2 hours ago
I appreciate what you did here, answered it right Smiling Face with Open Mouth
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  987 People Browsing
 106 Signed Up Today
Related Images
  
 76
  
 386
  
 3531
Your Opinion
Which 'study break' activity do you find most distracting?
Votes: 820

Previous poll results: What's your favorite coffee beverage?