---
title: "java 输出一对双引号"
author: "mywebcode"
date: "2013-12-05T18:32:00Z"
tags: []
slug: "java"
draft: false
lastmod: "2014-04-30T09:16:39Z"
id: 2058347
url: "https://mywebcode.iteye.com/blog/2058347"
---

```
直接看例子
```

```
//输出双引号
```

```
public class Test {
```

```
public static void main(String[] args) { 
System.out.println("\"\"");       //利用转义字符
   } 
} 
```

```
//输出单引号 直接写当引号
```

```
System.out.println("''");
```