Return ArrayList from ArrayList method type?

I'm making a little card deck program that uses an ArrayList for the deck. One of the limitations set upon me is th...

How do I check if a method returns true or false in an IF statement in Java??

Let's say I have a boolean method that uses an if statement to check whether the return type should be true or false...

Define a method outside of class definition??

class MyClass: def myFunc(self): pass Can I create MyFunc() outside of the class definition, maybe eve...

Bisection method in c programming?

I'm trying to write an algorithm to find the roots of f(x) = x^4 -4x +1 I'm supposed to get the 4 roots of this func...

Differences between data attributes and method attributes?

What is a method attribute, and a data attribute? What the difference between them and what they have in common? I ...

How to return a boolean method in java??

I need help on how to return a boolean method in java. This is the sample code: public boolean verifyPwd(){ ...

C# cannot convert method to non delegate type?

I have a class called Pin. public class Pin { private string title; public Pin() { } public setTitle(...

Java: Basic class definition?

Define the missing method. licenseNum is created as: (100000 * customID) + licenseYear. Sample output: Dog license...

Java Computing Monthly Payments Loops?

I have a question for yall, I am using loops for the following program and I cant understand how to make it so it di...

Return outside method error?

boolean openingboard; { Robot robot = new Robot(); Color color3 = new Color(108, 25, 85); Rectangle rectangle = n...

TypeError: method() takes 1 positional argument but 2 were given?

If I have a class... class MyClass: def method(arg): print(arg) ...which I use to create an object.....

How to bind spacebar key to a certain method in tkinter (python)?

I am working on a project in python, and I made a method to draw a specific thing in tkinter. I want it so that when...

How to make method call another one in classes??

Now I have two classes allmethods.cs and caller.cs. I have some methods in class allmethods.cs. I want to write cod...

How can i fix this equals on primitive type(int)?

heres my code for a library application package com.accenture.totalbeginner; public class Person { private Strin...