英文: Writing an instance of a class in java 问题 类名 a = new ClassName1(); ClassName 和 ClassName1 代表什么? ...
我想动态地从其他类中获取一些值,例如:
英文: I want to get some value from other class dynamicly for ex: 问题 public class Data{ public class F...
容器类是什么?
英文: What are container classes? 问题 所以我有一个名为ShipStorage的容器类,它在一个数组中存储对象。我还有另一个名为FileManager的类,它使用Ship...
将一个对象添加到第一个对象的类属性中包含的另一个对象中,Java。
英文: Add an object to another object contained in one of the first's class attributes, Java 问题 我有...
Java – 类中嵌套的自定义类型
英文: Java - Custom type nested in class 问题 我再次请求技术支持。 我需要在类内部定义一个自定义类型,我是这样做的: public class MainClass...
If Person is class in java,then what is difference between 1)Person p; &2)Person p = new Person();?
英文: If Person is class in java,then what is difference between 1)Person p; &2)Person p = new Per...
如何在`getArrow()`函数中局部地更改条件`if(ab)`中的`x`和`y`的值。
英文: how can i change the value of the x and y in if(ab) at getArrow() locally 问题 public class Arrow ...
Java如何直接向类中添加项,而不是使用数组对象
英文: Java how to add items directly to a class rather than having an array object 问题 我在类的一部分中有一个Array...
I want to make a GUI but i get this error: self.frame.grid(row=0, column=0, sticky="nsew") AttributeError: 'function' object has no attribute 'grid'
英文: I want to make a GUI but i get this error: self.frame.grid(row=0, column=0, sticky="nsew&qu...
在Matlab中,是否可以将文件夹中组织的类的方法放在子目录/子文件夹中?
英文: In matlab, is it possible to put methods of classes organised in folders in subdirectories/subfo...
37