2019年2月5日 星期二

測試 code format -1

1. tab -> space
2. 將程式碼貼至:https://iamernie8199.blogspot.com/p/html.html
3. 使用「HTML」編輯 ,預設為「撰寫」。
4. 程式碼使用以下標籤包覆:
<pre class="prettyprint linenums">
</pre>

JAVA CODE

  1. public class Exam {
  2. private char var;
  3.  
  4. public static void main(String[] args) {
  5. char v1 = 'a';
  6. char v2 = v1;
  7. v2 = 'e';
  8.  
  9. Exam obj1 = new Exam();
  10. Exam obj2 = obj1;
  11. obj1.var = 'i';
  12. obj2.var = 'o';
  13.  
  14. System.out.println(v1 + ", " + v2);
  15. System.out.println(obj1.var + ", " + obj2.var);
  16. }
  17. }
  18.  
測試插入圖片:




原始大小


方法
方法描述
and
使用「且(and)」結合兩個BooleanExpressions
or
使用「或(or)」結合兩個BooleanExpressions
not
使用「否(not)」否定BooleanExpressions

方法
方法描述
and
使用「且(and)」結合兩個BooleanExpressions
or
使用「或(or)」結合兩個BooleanExpressions
not
使用「否(not)」否定BooleanExpressions


沒有留言:

張貼留言