Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

简体中文

学习编写单行和多行注释

这个程序来自于真实世界中的著名的开源项目Guava。 这个练习的目的是让你熟悉注释(单行、多行)的写法及快捷键,你会在未来无数次地用到这些知识。

请将其中的单行注释改成多行注释,多行注释改成单行注释。不要修改注释内容本身。

例如,单行注释

// 今天
// 天气不错

改写成多行注释

/*
今天
天气不错
*/

反之亦然。

挑战

  • 这个程序的单行注释改成多行注释,多行注释改成单行注释。不要修改注释内容本身。
  • 创建一个Pull Request。
  • 机器人将会检查你的PR,告诉你你是否通过了挑战。
  • 回到字节传说,然后继续你的英雄旅程。

注意:我们只允许您修改以下文件,任何对其他文件的修改都会被拒绝:

  • src/main/java/com/google/common/escape/ArrayBasedUnicodeEscaper.java

English

Learn Single-line & Multi-line Comments

This program comes from a famous realworld opensource project Guava. The intention is to familiarize you with single-line and multi-line comments and the shotcuts. You'll benefit from it a million times in the future.

Please convert single-line comments to multi-line comments, and multi-line comments to single-line comments in the class. DO NOT change the content of the comments.

For example, single-line comments

// Hi
// Hello

should be converted into multi-line comments as:

/*
Hi
Hello
*/

And vice versa.

Challenge

  • Convert single-line comments to multi-line comments, and multi-line comments to single-line comments in this class. DO NOT change the content of the comments.
  • Create a pull request.
  • The bot will check your PR and tell you if you accomplish the challenge.
  • Go back to ByteLegend and continue your hero journey.

Note: we only allow you to modify the following files. Any changes to files other than the following files will be rejected:

  • src/main/java/com/google/common/escape/ArrayBasedUnicodeEscaper.java

About

Challenge of JavaIsland: Comment

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages