java语言程序设计-基础篇-课件(第5章)英文.pptVIP

  • 20
  • 0
  • 约1.48万字
  • 约 77页
  • 2016-12-11 发布于江西
  • 举报

java语言程序设计-基础篇-课件(第5章)英文.ppt

java语言程序设计-基础篇-课件(第5章)英文.ppt

Case Study: Generating Random Characters, cont. Now let us consider how to generate a random lowercase letter. The Unicode for lowercase letters are consecutive integers starting from the Unicode for a, then for b, c, ..., and z. The Unicode for a is int a So, a random integer between int a and int z is int int a + Math.random * int z - int a + 1 * Case Study: Generating Random Characters, cont. Now let us consider how to generate a random lowercase letter. The Unicode for lowercase letters are consecutive integers starting from the Unicode for a, then for b, c, ..., and z. The Uni

文档评论(0)

1亿VIP精品文档

相关文档