Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
52 views

I am working on a Java project and I have defined an interface, a class that implements this interface, and a user class to test the implementation. I am confused about how I can call methods from the ...
Mohammed Raheel's user avatar
0 votes
0 answers
56 views

I have a class (ServerASync) with a shared Hashtable variable bSocket_Monitored. The variable values of bSocket_Monitored are shared between instances in different way in respect to how I declare the ...
Guidonzolo's user avatar
1 vote
1 answer
152 views

Question: Need to understand why in case of Program 1 getting this misleading error, but in Program 2 it gives correct error? Also why unlike toString(), equals(Object), and hashCode(), overriding ...
PANKAJ DUBEY's user avatar
0 votes
1 answer
91 views

I have an object class: class Color(object): def __init__(self, color): self.color = color I want to run the following commands: blue = Color("blue") print blue "The pen ...
Adam Sirrelle's user avatar
-1 votes
2 answers
922 views

I have defined my own enum, which will extend Java Enum Class. Does Java Enum Class extend Java Object Class? enum ORDER { FIRST, SECOND, THIRD, FOURTH }
shamanth gowda's user avatar
1 vote
3 answers
2k views

I am trying to make a static array in Kotlin. For doing this, I created an Object class, and inside that declared a mutableListOf<PersonModel>(). When I try to add new Object PersonModel to ...
roshannepal_x's user avatar
1 vote
1 answer
96 views

Is there any way to splits a string into an array and loop it into an array class in android java? Below is my code but it cannot loop Sample ScanResultProduct record ="P001,7,1,7,P002,8,2,16&...
XDfox's user avatar
  • 53
1 vote
1 answer
785 views

I was learning about Reference (or Address) comparison and Content comparison. The below statement makes me confused: If a class does not override the equals method, then by default, it uses the ...
Superman's user avatar
  • 532
0 votes
1 answer
1k views

I want to create dynamic group in openldap with Apache Directory Studio but groupOfURLs object class not available.
Mohammad Reza Mousavi's user avatar
1 vote
2 answers
84 views

What is the logic behind == returning false when two reference variables are referring to same Object having same hash code values? public class One { public static void main(String[] args) { ...
missing.hashcode's user avatar
0 votes
2 answers
792 views

Thank you in advance. I am really stuck on this one, but practicing. Thank you in advance for any help. I am able to successfully build this Json object in my code, but de-serializing it with the same ...
Autonomic's user avatar
  • 170
5 votes
3 answers
10k views

I am getting the following error: Error in UseMethod("rescale") : no applicable method for 'rescale' applied to an object of class "c('haven_labelled', 'vctrs_vctr', 'double')" ...
Luke Thompson's user avatar
0 votes
0 answers
37 views

I got confused when Im try to parsing json in object class. Im using klaxon but I just wonder how to read the file because I cannot use activity or application to add it into buffered object. enter ...
Hadisyah's user avatar
-3 votes
2 answers
278 views

public class ObjectClass { public static void main(String[] args) { Demo dm = new Demo(); Object obj = dm.getObject(); System.out.println("Class name :: "+obj....
Dhiraj's user avatar
  • 1
0 votes
1 answer
1k views

Given a valid python-ldap context, how can I query all the objectClass available in the LDAP server? I suppose the result would be a list of ldap.schema.models.ObjectClass.
azmeuk's user avatar
  • 4,666
1 vote
2 answers
3k views

I am running a function whereby I check if a user has a refunded item/s on their previous order and if they do then apply a credit as a negative cart fee at checkout. The function is working for users ...
southafricanrob's user avatar
0 votes
1 answer
254 views

I have made an object of S4 class SeqExpressionSet with EDASeq which I can then analyse with plotPCA. However the plotPCA function lacks the ability to fully adjust aesthetics. I was therefore ...
Jens's user avatar
  • 43
0 votes
1 answer
102 views

There are three classes with interfaces Train: ITrain, Line: Iline and City: ICity. Generally, I advanced in the code and resolved TEST 3 & 4 but caused new issues. I have following issues: 1. ...
user avatar
1 vote
1 answer
1k views

Kotlin provide a better way to create singleton object and companion object to access class member via class name. Cool this is !! But how the memory allocation work for both declaration, does this ...
CoDe's user avatar
  • 11.2k