这篇博文是用Windows Live Writer写的,看看效果
下面是以前写的程序:java中从控制台输入多行数据 按回车键输入空行结束
//试过几个插件,发现插入代码后都不能复制,
但是插入图片还是很方便的,
用wlw写博客好处是可以离线,
以后就用wlw写,然后发布草稿,再到CSDN插入代码后发表文章,只是写个博客要这么艰难吗!!!
<pre name="code" class="java">Scanner scanner = new Scanner(System.in);ArrayList<Integer> ns = new ArrayList<>();do {String string = scanner.nextLine();if (string.equals("")) {break;}ns.add(Integer.valueOf(string));} while (true);System.out.println(ns);
输入:
4
5
6
7
输出:
[4, 5, 6, 7]
插入一个图片试试:
插入一个链接试试:
http://blog.csdn.net/brian512
不要气馁于那前方的阴影,那只是因为我背后光芒万丈