顯示具有 格式測試 標籤的文章。 顯示所有文章
顯示具有 格式測試 標籤的文章。 顯示所有文章

2019年2月5日 星期二

測試 code format -2

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

HTML CODE

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML基礎</title>
<style>
header, footer {
    clear: both;
    text-align: center
}

nav {
    float: left;
    width: 20%;
    background: lightyellow
}

article {
    float: left;
    width: 60%;
    background: lightgray
}

aside {
    float: right;
    width: 20%;
    background: lightpink
}
</style>
</head>
<body>
    <header>
        <h1>頁首</h1>
    </header>
    <nav>
        <h1>導覽列</h1>
    </nav>
    <article>
        <h1>內容區</h1>
    </article>
    <aside>
        <h1>側邊欄</h1>
    </aside>
    <footer>
        <h1>頁尾</h1>
    </footer>
</body>
</html>

測試 code format -1

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

JAVA CODE

public class Exam {
    private char var;

    public static void main(String[] args) {
        char v1 = 'a';
        char v2 = v1;
        v2 = 'e';

        Exam obj1 = new Exam();
        Exam obj2 = obj1;
        obj1.var = 'i';
        obj2.var = 'o';

        System.out.println(v1 + ", " + v2);
        System.out.println(obj1.var + ", " + obj2.var);
    }
}

測試插入圖片:




原始大小


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

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