The method setStatus(int) in the type Goods is not applicable for the arguments (Integer)
来源:互联网 发布:python title 编辑:程序博客网 时间:2024/05/22 12:57
The method setStatus(int) in the type Goods is not applicable for the arguments (Integer)
goods.setStatus(Integer.valueOf(ds.elementText("STATUS")));
改为:
goods.setStatus(Integer.parseInt(ds.elementText("STATUS")));
public static Integer valueOf(String s) throws NumberFormatException
- 返回保持指定的
String
的值的Integer
对象。将该参数解释为表示一个有符号的十进制整数, 就好像将该参数赋予parseInt(java.lang.String)
方法一样。结果是一个表示字符串指定的整数值的Integer
对象。换句话说,该方法返回一个等于以下值的
Integer
对象:new Integer(Integer.parseInt(s))
public static int parseInt(String s) throws NumberFormatException
- 将字符串参数作为有符号的十进制整数进行分析。除了第一个字符可以是用来表示负值的 ASCII 减号
'-'
('\u002D'
) 外,字符串中的字符都必须是十进制数字。返回得到的整数值,就好像将该参数和基数 10 作为参数赋予parseInt(java.lang.String, int)
方法一样。
- 将字符串参数作为有符号的十进制整数进行分析。除了第一个字符可以是用来表示负值的 ASCII 减号
- The method setStatus(int) in the type Goods is not applicable for the arguments (Integer)
- The method setBackground(Drawable) in the type View is not applicable for the arguments (int)
- The method add(int, Fragment) in the type FragmentTransaction is not applicable for the arguments (i
- The method makeText(Context, int, int) in the type Toast is not applicable for the arguments (new Vi
- The method setClass(Context, Class<?>) in the type Intent is not applicable for the arguments (GameV
- The method load(Class, Serializable) in the type Session is not applicable for the arguments (Class<
- The method add(Fragment) in the type ArrayList<Fragment> is not applicable for the arguments (ImageF
- The method setValue(String) in the type ParamTag is not applicable for the arguments (long)
- [真理永垂不朽]The method XXX in the type FragmentTransaction is not applicable for the arguments XXX
- he method get(Class, Serializable) in the type HibernateTemplate is not applicable for the arguments
- The method replace(int, Fragment, String) in the type FragmentTransaction is not applicable for the
- The method replace(int, Fragment, String) in the type FragmentTransaction is not applicable for the,
- 错误:The method replace(int, Fragment) in the type FragmentTransaction is not applicable for the argum
- The method replace(int, Fragment) in the type FragmentTransaction is not applicable for the argument
- The method setButton(int, CharSequence, Message) in the type AlertDialog is not applicable for the a
- The method replace(int, Fragment) in the type FragmentTransaction is not applicable for the argument
- The method makeText(Context, CharSequence, int) in the type Toast is not applicable for the argument
- 错误:The method replace(int, Fragment) in the type FragmentTransaction is not applicable for the argum
- 如何进行需求测试/需求评审
- O7_DICTIONARY_ACCESSIBILITY参数的理解
- Webloic JDBC连接泄漏
- 简单程序所需要的简单 asp.net通用数据库访问类
- Linux 几个特殊进程
- The method setStatus(int) in the type Goods is not applicable for the arguments (Integer)
- java ip地址转换
- 64位SQL 2008 链接32位SQL 2000 服务器问题(二)
- QMessageBox的一系列问题
- 自定义Sql Server 字符串聚合函数
- linux上运行多个tomcat
- C#中读取pdm文件信息(PowerDesigner读取方法)(源码共享)
- Android VNC Server on G1 (PC 远程控制 Android 手机)
- 显示a.txt中以 abcd 开头的行和它的上一行