<pre name="code" class="java">public class Ws_comparator implements Comparator<Wsnode> {
public int compare(Wsnode ws1, Wsnode ws2) {
// TODO Auto-generated method stub
float fea1=ws1.get_match();
float fea2=ws2.get_match();
if(fea1>fea2)
return 1;
else
return 0;
}
}
Java代碼,加粗黑體:
<strong>public class Ws_comparator implements Comparator<Wsnode> {
public int compare(Wsnode ws1, Wsnode ws2) {
// TODO Auto-generated method stub
float fea1=ws1.get_match();
float fea2=ws2.get_match();
if(fea1>fea2)
return 1;
else
return 0;
}
}</strong>
Java代碼,修改顏色:
<span style="color:#ff0000;">public class Ws_comparator implements Comparator<Wsnode> {
public int compare(Wsnode ws1, Wsnode ws2) {
// TODO Auto-generated method stub
float fea1=ws1.get_match();
float fea2=ws2.get_match();
if(fea1>fea2)
return 1;
else
return 0;
}
}</span>
Java代碼,修改底色:
<span style="background-color: rgb(255, 204, 204);">public class Ws_comparator implements Comparator<Wsnode> {
public int compare(Wsnode ws1, Wsnode ws2) {
// TODO Auto-generated method stub
float fea1=ws1.get_match();
float fea2=ws2.get_match();
if(fea1>fea2)
return 1;
else
return 0;
}
}</span>
Java代碼,修改字號:
<span style="font-size:18px;">public class Ws_comparator implements Comparator<Wsnode> {
public int compare(Wsnode ws1, Wsnode ws2) {
// TODO Auto-generated method stub
float fea1=ws1.get_match();
float fea2=ws2.get_match();
if(fea1>fea2)
return 1;
else
return 0;
}
}</span>
Java代碼,修改字體:
<span style="font-family:Comic Sans MS;">public class Ws_comparator implements Comparator<Wsnode> {
public int compare(Wsnode ws1, Wsnode ws2) {
// TODO Auto-generated method stub
float fea1=ws1.get_match();
float fea2=ws2.get_match();
if(fea1>fea2)
return 1;
else
return 0;
}
}</span>
Java代碼,加斜體:
<em>public class Ws_comparator implements Comparator<Wsnode> {
public int compare(Wsnode ws1, Wsnode ws2) {
// TODO Auto-generated method stub
float fea1=ws1.get_match();
float fea2=ws2.get_match();
if(fea1>fea2)
return 1;
else
return 0;
}
}</em>
Java代碼,加下劃線:
<u>public class Ws_comparator implements Comparator<Wsnode> {
public int compare(Wsnode ws1, Wsnode ws2) {
// TODO Auto-generated method stub
float fea1=ws1.get_match();
float fea2=ws2.get_match();
if(fea1>fea2)
return 1;
else
return 0;
}
}</u>
Java代碼,誤選HTML編輯方式:
<pre name="code" class="html">public class Ws_comparator implements Comparator<Wsnode> {
public int compare(Wsnode ws1, Wsnode ws2) {
// TODO Auto-generated method stub
float fea1=ws1.get_match();
float fea2=ws2.get_match();
if(fea1>fea2)
return 1;
else
return 0;
}
}
Java代碼,誤選CSS編輯方式:
public class Ws_comparator implements Comparator<Wsnode> {
public int compare(Wsnode ws1, Wsnode ws2) {
// TODO Auto-generated method stub
float fea1=ws1.get_match();
float fea2=ws2.get_match();
if(fea1>fea2)
return 1;
else
return 0;
}
}
Java代碼,誤選C++編輯方式:
public class Ws_comparator implements Comparator<Wsnode> {
public int compare(Wsnode ws1, Wsnode ws2) {
// TODO Auto-generated method stub
float fea1=ws1.get_match();
float fea2=ws2.get_match();
if(fea1>fea2)
return 1;
else
return 0;
}
}
Java代碼,誤選PHP編輯方式:
public class Ws_comparator implements Comparator<Wsnode> {
public int compare(Wsnode ws1, Wsnode ws2) {
// TODO Auto-generated method stub
float fea1=ws1.get_match();
float fea2=ws2.get_match();
if(fea1>fea2)
return 1;
else
return 0;
}
}
Java代碼,誤選C#編輯方式:
public class Ws_comparator implements Comparator<Wsnode> {
public int compare(Wsnode ws1, Wsnode ws2) {
// TODO Auto-generated method stub
float fea1=ws1.get_match();
float fea2=ws2.get_match();
if(fea1>fea2)
return 1;
else
return 0;
}
}
Java代碼,誤選javascript編輯方式:
<pre name="code" class="javascript">public class Ws_comparator implements Comparator<Wsnode> {
public int compare(Wsnode ws1, Wsnode ws2) {
// TODO Auto-generated method stub
float fea1=ws1.get_match();
float fea2=ws2.get_match();
if(fea1>fea2)
return 1;
else
return 0;
}
}
public class Ws_comparator implements Comparator<Wsnode> {
public int compare(Wsnode ws1, Wsnode ws2) {
// TODO Auto-generated method stub
float fea1=ws1.get_match();
float fea2=ws2.get_match();
if(fea1>fea2)
return 1;
else
return 0;
}
}