Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
iterate over pairs
mikhail_dvorkin
Nov 6th, 2015
384
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Java
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
int
i
=
0
;
for
(
T x
:
set
)
{
int
j
=
0
;
for
(
T y
:
set
)
{
if
(
i
>=
j
)
{
j
++;
continue
;
}
System
.
out
.
println
(
x
+
","
+
y
)
;
j
++;
}
i
++;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
SM Sketch
5 hours ago | 1.68 KB
Trajets ETS 2 EvLan4
13 hours ago | 0.32 KB
B7800 HYLK session 1985
22 hours ago | 2.25 KB
me
1 day ago | 0.06 KB
FED RESPONSE TEMPLATES: FED HTML Review Feedb...
1 day ago | 0.79 KB
disable email per category (not fully tested)
2 days ago | 0.82 KB
Neuromancer — The Construct Cut (Complete Una...
2 days ago | 3.30 KB
GLUC6
2 days ago | 1.56 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!