博文中贴代码-乱码测试-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;
	}
}







猜你喜欢

转载自blog.csdn.net/u012935646/article/details/39478939
今日推荐