博文中貼代碼-亂碼測試-2

Java代碼,未修改:
<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;
	}
}



Java代碼,誤選Python編輯方式:

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;
	}
}







發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章