“Maven”的版本间的差异

来自Dennis C.K Deng-Wiki
跳转至: 导航搜索
 
(未显示同一用户的16个中间版本)
第1行: 第1行:
 
测试,我会在这里补充我的maven知识
 
测试,我会在这里补充我的maven知识
[[文件:http://notes.dengck.com/media/dw.jpg]]
+
[[文件:wchat.JPG]]
 +
 
 +
 
 +
<syntaxhighlight lang="java" >
 +
 
 +
public static boolean judgeCircle(String moves) {
 +
        int vertical = 0;
 +
        int horizontal = 0;
 +
        for (int i = 0; i < moves.length(); i++) {
 +
            char action = moves.charAt(i);
 +
            switch (action) {
 +
                case 'U':
 +
                    vertical++;
 +
                    break;
 +
                case 'D':
 +
                    vertical--;
 +
                    break;
 +
                case 'R':
 +
                    horizontal++;
 +
                    break;
 +
                case 'L':
 +
                    horizontal--;
 +
                    break;
 +
            }
 +
 
 +
        }
 +
 
 +
 
 +
</syntaxhighlight>
 +
An extract of source <syntaxhighlight lang="php" inline><?php echo "Done!"; ?></syntaxhighlight> on one line.
 +
 
 +
 
 +
<syntaxhighlight lang=c style="border:3px dashed blue">
 +
#include <stdio.h>
 +
int main()
 +
{
 +
printf ("Hello world!");
 +
return 0;
 +
}
 +
</syntaxhighlight>

2017年9月17日 (日) 10:06的最新版本

测试,我会在这里补充我的maven知识 Wchat.JPG


public static boolean judgeCircle(String moves) {
        int vertical = 0;
        int horizontal = 0;
        for (int i = 0; i < moves.length(); i++) {
            char action = moves.charAt(i);
            switch (action) {
                case 'U':
                    vertical++;
                    break;
                case 'D':
                    vertical--;
                    break;
                case 'R':
                    horizontal++;
                    break;
                case 'L':
                    horizontal--;
                    break;
            }

        }

An extract of source <?php echo "Done!"; ?> on one line.


#include <stdio.h>
int main()
{
	printf ("Hello world!");
	return 0;
}