The parameter to the method is the basic data type

 1 package method.invocation;
 2
 3 public class TheParameterToTheMethodIsTheBasicDataType {
 4     public static void main(String[] args) {
 5         int a = 10;
 6         int b = 20;
 7
 8         System.out.println(a+" "+b);
 9
10         change(a, b);
11
12         System.out.println(a+" "+b);
13     }
14
15     public static void change(int a, int b) {
16         System.out.println(a+" "+b);
17         a = b;
18         b = a + b;
19         System.out.println(a+" "+b);
20     }
21 }

原文地址:https://www.cnblogs.com/lzp123456-/p/9692231.html

时间: 2024-10-27 06:22:32

The parameter to the method is the basic data type的相关文章

Parameter 0 of method 方法b in 类a required a bean of type ***

Description: Parameter 0 of method getLastTick in com.td.spec.marketdata.stockdatasourceserver.service.CacheProcessor required a bean of type 'com.td.spec.marketdata.common.entity.StockTick' that could not be found. Action: Consider defining a bean o

The method dismissDialog(int) from the type Activity is deprecated

The method showDialog(int) from the type Activity is deprecated in android? up vote6down votefavorite The method showDialog(int) from the type Activity is deprecated. What's the reason? and how to solve it? 7down voteaccepted What's the reason? http:

hdu-5929 Basic Data Structure(双端队列+模拟)

题目链接: Basic Data Structure Time Limit: 7000/3500 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 207    Accepted Submission(s): 41 Problem Description Mr. Frog learned a basic data structure recently, which is called

The method sendKeys(CharSequence[]) in the type WebElement is not applicable for the arguments (String)

写了一段测试代码运行时一直报错:The method sendKeys(CharSequence[]) in the type WebElement is not applicable for the arguments (String) 测试代码: driver.findElement(By.name("wd")).sendKeys("selnium"); 原因:旧版本的Java不理解非随机变量参数 解决方法:在工程上点击右键选择Build Path -> 

HDU 5929 Basic Data Structure 模拟

Basic Data Structure Time Limit: 7000/3500 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Problem Description Mr. Frog learned a basic data structure recently, which is called stack.There are some basic operations of stack: ? PUSH x: p

Access restriction: The method createJPEGEncoder(OutputStream) from the type JPEGCodec is not access

准备使用Java进行图片压缩的时候,使用 import com.sun.image.codec.jpeg.*; 结果出现错误: Access restriction: The method createJPEGEncoder(OutputStream) from the type JPEGCodec is not accessible due to restriction on required library 上网查了一下,发现是IDE的设置问题,它默认把这些受访问限制的API设成了ERROR

'Basic' attribute type should not be a persistence entity/a container

在使用IDEA进行HIbernate开发时,从datasource得到的实体映射并不理想,需要手动更改. 在向实体类添加属性的Setter时,暂时会有红色tip:'Basic' attribute type should not be a persistence entity 或者 'Basic' attribute type should not be a container. 然后,向hbm.xml文件添加关联关系后,那个红色tip就会消失. 'Basic' attribute type s

C++ basic - numeric type conversation数值类型转换

What? 在计算中涉及不同数值类型的computation,这时候,C++会按照以下顺序进行转换 order:long double>double>float>unsigned long>long>unsigned int>int eg. (1) 1/2=0(当1和2都是int时),结果也肯定是int: (2)1.0/2=0.5(当1.0为double,2为int时),2会被转化成doubley因为double>int syntax for type conve

nodes() Method (xml Data Type)

https://docs.microsoft.com/en-us/sql/t-sql/xml/nodes-method-xml-data-type The nodes() method is useful when you want to shred an xml data type instance into relational data. It allows you to identify nodes that will be mapped into a new row. Every xm