object tag

32 questions


1 answers
483 views
0
Please tell me what object is used to redefine equals in HashMap.

javapackage sec01.verify.exam03;public class Student {private String studentNum;public Student(String studentNum) { this.studentNum = studentNum;}public String getStudentNum() { return studentNum;}@O...

1 years ago

1 answers
102 views
0
Send Object from Activity to Another Activity

I want to send the object of the customer class to another activity. So I want to show you in other activitiesWhat should I do?public class Customer { private String firstName, lastName, Address; int ...


1 answers
167 views
0
Is there a way to determine the size of the object in Python?

In C/C++, I found out by using sizeof()I wonder if Python has a similar function. I am writing an XML file that determines the size of the value by the size of the fieldYou should always check the fie...


1 answers
105 views
0
How do you use super() in Python?

In Perl and Java, super() was used to call the method of the parent class.package Foo;sub frotz { return Bamf;}package Bar;@ISA = qw(Foo);sub frotz { my $str = SUPER::frotz(); return uc($str);}I don't...


1 answers
183 views
0
What do you compare the contents() method of ArrayList?

ArrayList<Thing> basket = new ArrayList<Thing>(); Thing thing = new Thing(100); basket.add(thing); Thing another = new Thing(100); basket.contains(another); // true or false?class Thing { ...


1 answers
164 views
0
How do I cast an object as int in Java?

I want to cast an object as int. How do I do it

2 years ago

1 answers
158 views
0
How can I output data for a Java object that is not the same value as "SomeType@2f92e0f4"?

You have defined the following classes:public class Person { private String name; // // constructor and getter/setter omitted}Attempted to print an object for this Person class.System.out.println(myPe...

2 years ago

1 answers
147 views
0
When creating class objects in Java, the types are different.

Hi, how are you?This is how you create a class objectYo MyObject object = new MyObject();I'm studying jsp code reviewIf there's MyObject at the front and MyObject at the back of the new, Your type? I ...

2 years ago

1 answers
171 views
0
I am curious about converting the object type data into a list on Android

I get the value from Google Firebase database to getvalue.When I saved it as a set value, the data that was listed was saved as an object typeI'm calling it getValue, but I have to change the object d...


1 answers
164 views
0
Can't the constructor be called when creating a temporary object with a return value?

#include <iostream>class Point{ int x, y;public: Point (int a = 0, int b = 0): x(a), y(b) {std::cout << execute creator<< std::endl;} friend Point operator+(const Point& p1, cons...

- 1 - »

© 2024 OneMinuteCode. All rights reserved.