pastebin
| #1 paste tool since 2002
create new paste
tools
api
archive
real-time
faq
pastebin
Follow @pastebin
create new paste
trending pastes
sign up
login
my settings
my profile
My Pastes
Public Pastes
Untitled
2 sec ago
Untitled
9 sec ago
Untitled
9 sec ago
Untitled
16 sec ago
Untitled
16 sec ago
Built-In.ABS
Python | 17 sec ago
Untitled
22 sec ago
Untitled
23 sec ago
Layout Width
Share Pastebin
Untitled
By: a guest | Feb 9th, 2010 | Syntax:
Java
| Size: 0.17 KB | Hits: 37 | Expires: Never
Download
|
Raw
|
Embed
|
Report abuse
This paste has a previous version,
view the difference
.
public
String
toString
(
)
{
System
.
out
.
print
(
"Queue: "
)
;
for
(
int
i
=
0
;
i
<
size
(
)
;
i
++
)
{
System
.
out
.
println
(
"("
+
String
.
valueOf
(
this
.
getObject
(
i
)
)
+
") "
)
;
}
}
create new paste
|
create new version of this paste
RAW Paste Data
public String toString(){ System.out.print("Queue: "); for(int i = 0; i<size(); i++){ System.out.println("(" + String.valueOf(this.getObject(i)) + ") "); } }