Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类
分类:
文章
•
2024-05-17 22:28:10
Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类
接口
![Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类 Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzE5OC8wNWVmZDljNzQ0ZDA5Zjk4NTlmOWUwNjdlMTUwOWJjZS5wbmc=)
![Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类 Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzczNC8xMTRhMjdiMGUzN2ViMGU1MjE4YWQ0MmM0M2U1MTkzZS5wbmc=)
![Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类 Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzM3OC9hYjBlZjU5MmQ1NWIzYmYwYjMxMTdmMWUyMDQxNzBhMi5wbmc=)
Exception
![Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类 Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzkyNy8yYmZkYmJmODBlNWU4NWQ0MGM5YmU4MDhmNmZkNGEzZi5wbmc=)
字符串
字符串的定义
![Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类 Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzM3Ny8zMGFiZjgyZDM5Zjk5ODU4MmJiNjZhYjY4OGY3MzE4MS5wbmc=)
![Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类 Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzUwOC83ZGQ1NzM0MjhlZmNiMzM5NzE0YTFjMmNjMjAzZmJkNC5wbmc=)
求字符串的长度
![Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类 Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzc4NS9kOWE2MWQ5ODM2YWJhZGU5MTJiNWYzMjlmODRiMzM5OS5wbmc=)
连接字符串
![Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类 Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzY5OC84NTY3YmEyZWExMjMwMzVmZWI3ZjE3N2M1ZjhlN2YxMi5wbmc=)
System类,Scanner类,Math类
System类
![Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类 Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzQ1NC9jODY0NjNkYzdkYzZmNWYzNmZjZGU5MmU2MzY0ZjM2Ni5wbmc=)
Scanner类
![Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类 Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzk4OS9hOTRlZTkzYjk1OWEyM2RhY2QxYWQ2MDM3OWUwZDQ5NS5wbmc=)
正则表达式
正则表达式(Regular Expression)是用于描述一组字符串特征的模式,用来匹配特定的字符串。通过特殊字符+普通字符来进行模式描述,从而达到文本匹配目的工具。
![Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类 Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzc3NC81NjdmZWQ0MjA2NTA3ZDA4MDYxMWI3YWMyZmRhZDcwNi5wbmc=)
![Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类 Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzcyMi8zNjk5NTJhZWI4MGIzZGIzZWNmYzdlZTkzZjRjMzI2Mi5wbmc=)
匹配城市固定电话号码
![Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类 Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzY0OS8yYjA5MDgyZjM0MmEyY2NhYmU2NDBiNTQ1MzY2MTg5OS5wbmc=)
Math类
![Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类 Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzE2Ny8wMzBhZGY2Yjg5ZTNhOTdjOTUwMWY0NDkzOTQyYWUxNy5wbmc=)
![Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类 Java接口,Exception,字符串,System类,Scanner类(含正则表达式详解),Math类](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzY0Mi80ZDMxNzY0OGQ2MGQyMjc1ODdhYjczNjI4NGM4M2U4Mi5wbmc=)
参考资料
【公开课】正则表达式入门
正则表达式