code_linenumber.html
Dosyayı İndir
<html>
<head>
<script language="JavaScript" type="text/javascript">
var lineIdString="lineNumber";
function hideAll(lastNumber){
for(var i=1;i<lastNumber+1;i++){
var newId=lineIdString+i;
hide(newId);
}
}
function showAll(lastNumber){
for(var i=1;i<lastNumber+1;i++){
var newId=lineIdString+i;
show(newId);
}
}
function hide(lineId){
var line=document.getElementById(lineId);
line.style.display="none";
}
function show(lineId){
var line=document.getElementById(lineId);
line.style.display="inline";
}
</script>
<style>
span{
margin-right:15px;
}
</style>
</head>
<body>
<a href="javascript:hideAll(18);">gizle</a>
<a href="javascript:showAll(18);">göster</a>
<pre>
<span id="lineNumber1">1</span>public class Rectangle{
<span id="lineNumber2">2</span> int x,y,w,h;
<span id="lineNumber3">3</span> public final static int COLLISION_LEFT=0;
<span id="lineNumber4">4</span> public final static int COLLISION_CENTER=1;
<span id="lineNumber5">5</span> public final static int COLLISION_RIGHT=2;
<span id="lineNumber6">6</span> public Rectangle(int x,int y,int w,int h){
<span id="lineNumber7">7</span> this.x=x;
<span id="lineNumber8">8</span> this.y=y;
<span id="lineNumber9">9</span> this.w=w;
<span id="lineNumber10">10</span> this.h=h;
<span id="lineNumber11">11</span> }
<span id="lineNumber12">12</span> public intgetX(){
<span id="lineNumber13">13</span> return x;
<span id="lineNumber14">14</span> }
<span id="lineNumber15">15</span> public int getY(){
<span id="lineNumber16">16</span> return y;
<span id="lineNumber17">17</span> }
<span id="lineNumber18">18</span>}
</pre>
</body>
</html>
Dosyayı İndir