method tag

20 questions


1 answers
316 views
0
Python Class Method Questions

class JPP: def __init__(self): # Create headless Chrome and specify download folder code self.driver = webdriver.Chrome() # options=self.options # Below is the current time-based -12 hours + 24 hou...

2 years ago

1 answers
287 views
0
Code deduplication

abstract class AirUnit extends Unit { private int power; public AirUnit(String name, int tribal, Point location, BaseStat baseStat, int power, double speed) { super(name, tribal, location, baseStat, ...

2 years ago

1 answers
171 views
0
Can I put the default value in the parameter in Java?

public MyParameterizedFunction(String param1, int param2) { this(param1, param2, false); } public MyParameterizedFunction(String param1, int param2, boolean param3) { //use all three parameters here...


2 answers
140 views
0
Is there anything in Java that can only return the method names within a certain class?

I create a class with a function and call that class from the menu and name the method in that class in the console window1.~2.~3.~If you choose a number after you make it like this, I want to run the...

2 years ago

1 answers
137 views
0
Why is there an exclamation point on the Ruby method?

Do you have this question mark? Are you right? I understand it's a question mark because you ask like thisWhat is the exclamation mark for?


1 answers
159 views
0
Which is Java, pass-by-reference or pass-by-value?

I've always thought that Java is a pass-by-reference. But I saw a blog claiming it wasn't. (Here's a link: http://javadude.com/articles/passbyvalue.htm)I don't know the difference. Please explain.


1 answers
115 views
0
When deleting data, can I find it with the delete method (key value to match, class name)?

public static void delete (int id) { // Create an EntityManager EntityManager manager = ENTITY_MANAGER_FACTORY.createEntityManager(); EntityTransaction transaction = null; try { // // Get a transacti...


1 answers
125 views
0
This is a question for the Java Scanner!

When I declare a field and declare a method after creating one class, if I need a scanner in several methods, should I declare and close the scanner for each method??And I created several classes, and...


1 answers
137 views
0
(Python) How do I write code?

class Account: def __init__(self, money): self.__money = moneyclass AccountManager: def __init__(self): self.__accList[] def newAcc(self): global Name global money self.__accList.append(Name) ##...

2 years ago

1 answers
138 views
0
Questions regarding the redirect method in ruby on rails.

Let's go to the previous pageQuestions regarding the redirect method.1.redirect : back2.redirect_back(fallback_location: root_path)When I wrote the first code, it said undefined method and there was a...

- 1 - »

© 2024 OneMinuteCode. All rights reserved.