c语言case label,an enum switch case label must be the unqualified name of an enumeration constant
问题
error: an enum switch case label must be the unqualified name of an enumeration constant case Cell.CELL_TYPE_NUMERIC
I find out a lot of solution about enum how to write the code and call to switch but I don't know why switch cause the problem. specially switch statement.
FileInputStream fis = new FileInputStream(new File("WriteSheet.xlsx"));
XSSFWorkbook workbook = new XSSFWorkbook(fis);
XSSFSheet spreadsheet = workbook.getSheetAt(0);
Iterator< Row> rowIterator = spreadsheet.iterator();
while (rowIterator.hasNext()) {
row = (XSSFRow) rowIterator.next();
Iterator< Cell> cellIterator = row.cellIterator();
while (cellIterator.hasNext()) {
Cell cell = cellIterator.next();
switch (cell.getCellType()) {
**case CELL_TYPE_NUMERIC:**
//
System.out.print(cell.getNumericCellValue() + " \t\t ");
break;
case CELL_TYPE_STRING:
//
System.out.print(
cell.getStringCellValue() + " \t\t ");
break;
}
}
System.out.println();
}
fis.close();
}
来源:https://stackoverflow.com/questions/58407069/an-enum-switch-case-label-must-be-the-unqualified-name-of-an-enumeration-constan
c语言case label,an enum switch case label must be the unqualified name of an enumeration constant相关推荐
- An enum switch case label must be the unqualified name of an enumeration cons
翻译一下:一个枚举switch case标签必须是一个枚举常量的非限定名称. 直接点,直接举例说明 按照以下写法是错的 应该改成
- python中的case语句_python技巧 switch case语句
不同于C语言和SHELL,python中没有switch case语句,关于为什么没有,官方的解释是这样的 使用Python模拟实现的方法: def switch_if(fun, x, y): if ...
- java switch case 跳转_Java switch case语句
1.switch case 语句有如下规则: switch 语句中的变量类型可以是: byte.short.int 或者 char.从 Java SE 7 开始,switch 支持字符串 String ...
- 枚举 switch case 标签必须为枚举常量的非限定名称
枚举 switch case 标签必须为枚举常量的非限定名称 错误描述: Error:(63, 24) 错误: 枚举 switch case 标签必须为枚举常量的非限定名称. 解决思路: switch ...
- php case语句吗,【PHP公开课|关于PHP switch case语句,你知道怎么用吗,这个例子你一定要来看看】- 环球网校...
[摘要]PHP作为一种超文本预处理器,已经成为了我们常用的网站编程语言,并且结合了C语言,Java等我们常见的编程语言,所以,有很多web开发领域的新人都看中了他的使用广泛性,有很多人都想了解php的 ...
- 【MATLAB】流程控制 ( 循环结构 | for 循环 | while 循环 | 分支结构 | if end 分支结构 | if else end 分支结构 | switch case 分支结构 )
文章目录 一.MATLAB 流程控制结构 二.for 循环 1.for 循环 2.嵌套 for 循环 三.while 循环 二.分支结构 1.if end 分支结构 2.if else end 分支结 ...
- MATLAB Simulink中自定义函数和switch case的用法
文章目录 1 Simulink自定义函数MATLAB Function 2 Simulink中Switch Case模块的用法 1 Simulink自定义函数MATLAB Function 首先写一个 ...
- kettle中的switch_kettle 条件判断 Switch Case
kettle 条件判断 Switch Case kettle 条件判断 Switch Case 介绍 Switch / Case,顾名思义,类似 Java 中的 Switch / Case,用于进行条 ...
- java switch case语句_在Java中使用switch Case语句的例子
当我们有多个选项,并且需要为每个选项执行不同的任务时,就需要使用Switch case语句. Switch case语句的语法如下-switch (variable or an integer exp ...
最新文章
- 在阿里云ECS服务器上面开启tomcat服务并且正常后,无法访问怎么办?原来是没有开通外网访问的端口
- python语音转文字源码_【python3】Python十行代码搞定文字转语音
- NeHe教程Qt实现——lesson09
- linux系统查看磁盘信息
- 51Nod-1080 两个数的平方和【暴力法】
- pandas小记:pandas高级功能
- python魔法方法-比较相关
- 3D动画设计软件:Cinema 4D R25 for mac(c4d r25)
- Java基础-四大特性理解(抽象、封装、继承、多态)
- Java数组排序的方法
- ftl不存在为真_ftl 语法
- 澳大利亚博士后招聘|国立大学—太阳能电池方向
- 参加西湖论剑2021
- 工业机械设备设计与艺术设计
- xshell6无法卸载、重新安装【1628: 完成基于脚本的安装失败】
- 开源2周年,openGauss Developer Day 2022全程亮点回顾!
- eclipse 找不到或无法加载主类(已解决)
- 2007工程院院士增选候选名单
- conhosts 占用CPU
- 构建完善的帮助中心,降低企业客户服务成本
热门文章
- Spring Boot的学习之路(02):和你一起阅读Spring Boot官网
- django分页的东西, 不详细, 但是也足够了。
- JAVA 类加载机制学习笔记
- [洛谷P3242] [HNOI2015]接水果
- 【BZOJ3884】上帝与集合的正确用法
- [译]看漫画学Flux
- Eclipse 生成WebService客户端代码
- ZOJ3545——AC自动机+状态dp
- java字符类型的返回值,Java字符类isWhitespace()方法及示例
- java 中传输文件的代码_java文件上传Demo(必看篇)