总结:我的笔试挂了。。基础的继承不懂不会。我不知道到底是哪里的问题。

要好好反思

package com.da.ima2;

public class jrfk {
	// int整型不能直接转化为Integer/
	// 在实际转化的时候,将Integer 类的构造方法和Integer类内部的intValue()方法。是实现类型的转换
	public static void main(String[] args) {
		// Hint a=4224;
		Integer in = new Integer(42);
		int x = in.intValue();// 接收方
		System.out.println(x);
	}
}

  

 

相关文章:

  • 2022-12-23
  • 2021-11-22
  • 2021-07-24
  • 2021-07-02
  • 2021-05-27
  • 2021-08-16
  • 2021-06-22
  • 2022-12-23
猜你喜欢
  • 2021-11-20
  • 2022-03-09
  • 2021-08-04
  • 2021-05-24
  • 2021-07-26
  • 2021-08-07
  • 2022-12-23
相关资源
相似解决方案