码迷,mamicode.com
首页 > 系统相关 > 详细

初次尝试mac下markdown 免费写作工具-Writed

时间:2015-04-08 15:07:29      阅读:128      评论:0      收藏:0      [点我收藏+]

标签:markdown

感觉效果很好, 输入文字和代码都很方便,专注于写作,是写博客的好助手。 推荐大家试用。 

Writed was created by Stahl Labs AB to 

provide the best distraction free 

writing tool for Mac.


*
This program  is used to reverse the string.
*/
// reverse string

import java.util.*;

public class  ReverseStr{
	public static void main(String[] args) {
	  		String[] strArr = { "hello world", "", "iammai" };
			
			for( String str: strArr)
 			System.out.println(String.format(" %s -> %s ", str, reverseStr(str)));
			
			
			
	}

	public static String reverseStr( String str) {
		String res = "";
		if (str.length() == 0 || str == null) return str;
		
		for(int i= str.length()-1;  i>= 0 ;  i--) {
			res += str.charAt(i);
		}
		return res;
	}



初次尝试mac下markdown 免费写作工具-Writed

标签:markdown

原文地址:http://blog.csdn.net/hustbill/article/details/44939679

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!