Questions tagged [method-call]
386 questions
0
votes
1 answer
Calling static method from m-file (octave/matlab)
I am currently having problems calling a static method located in an m-file, through the octave command interface. The error I'm getting is error: invalid call to script path/to/Test.m
Test.m:
classdef Test
methods(Static=true)
…

ShellFish
- 4,351
- 1
- 20
- 33
0
votes
3 answers
need value from constructor that uses external method
In one of my constructors i have :
public Author(String firstName, String lastName, String middleName, int yearBorn,
int monthBorn, int dayBorn, int yearDied, int monthDied, int dayDied,
String pseudonymFirstName, String pseudonymLastName,…
0
votes
1 answer
error when creating hash in simple Credit Card class for ruby
I am creating a simple CC class that can create and update a credit card. To do this, I have created cc_bal{} as an instance object so it can update respect credit cards. The hash is to save and update a person and the amount on their cc. I end up…

rahul2001
- 1,577
- 2
- 17
- 32
0
votes
5 answers
Return statement not working when calling another method
I have recently started experimenting with the return statement, and I have a small doubt relating to it- When I have a method which calls another method, will the return statement of that method which I am calling be displayed?
Let be give an…

Jack Sully
- 5
- 1
- 4
0
votes
3 answers
Getting the Object Calling a Method
In java, how can you get the object calling a method, within the method it is calling, if the method is in another class? I have looked all over the internet and no solution. Could someone please help?
0
votes
1 answer
Calling a method at a particular time of the day in iOS
I am developing an application in which there is this scenario in which I have to make a database entry for a new day each time date changes i.e. time become 00:00 or 12:00 am. I have a method which is responsible to do this but I don't know and…

ejaz dogar
- 115
- 3
- 13
0
votes
2 answers
Limit method call to one class
I wonder if it's possible to limit a method to be called by only one class in java.
public interface IAuditingEventHandler {
public void handleEvent(BaseEventType event);
}
public class EDAEventHandler implements IAuditingEventHandler {
…

sveri
- 1,372
- 1
- 13
- 28
0
votes
1 answer
Calling A function using a parameter in python (Dynamic Attribute Access)
Dynamic Attribute Access in Python?
I was working on a small side programming project I decided to undertake and ran into an error that I wasn't sure how to solve... I have searched for answers but really I only ever am finding results that seem to…

Starman
- 19
- 5
0
votes
0 answers
Call JQuery code before jQuery Mobile modifies HTML elements
I want to use the delegate() method to call my JS script to affect form elements BEFORE the JQM changes them but I am having difficulty. I need this because I need my JS converting radios to selects and have JQM display them as selects (so they need…

Phish
- 774
- 3
- 11
- 27
0
votes
0 answers
Automatically logging method calls in iOS
Is there a way to automatically log the method calls in iOS projects in the console? something like:
[MainListTableViewController viewDidLoad]
[MainListTableViewController actionA]
[MainListTableViewController actionB]
I don't want to log system…

ramo
- 609
- 2
- 8
- 14
0
votes
2 answers
Java calling a method to print class lists
Really need to know how to call this method in another class thnx
public static void printClass(){
System.out.println(subjectName + " Class List");
for(Student i : studentList)
{
Student.printStudent();
}
}
0
votes
1 answer
Calling a method from within another method of the same class
I have a number of methods which need to implement my add method, however I am not sure how to go about doing this, as all the methods are in the same class - ArrayPhoneDirectory.
Add method:
private void add(String name, String telno) {
if…

Joe Perkins
- 261
- 3
- 9
- 17
0
votes
3 answers
Need explanation on a method-call
In the code below:
public File[] findFiles (String path)
{
FilenameFilter textFilter = new FilenameFilter()
{
@override
public boolean accept(File dir, String name)
{
…

Melika Barzegaran
- 429
- 2
- 9
- 25
0
votes
1 answer
How to use Progress Bar in java swing,while the function working in heavy process
I have created a class for uploading a data from excel format to mysql database. The class contains the method to upload into the database. I am using button to call the method. That uploading process taking very long time to upload So, I want to…

scbose
- 1
- 1
- 7
0
votes
1 answer
Need BlueJ help: Method Call array
Here is my little sourcecode. It works but i need help at method call. I dont know "how to" enter the values.
I make "new SmallestElement ()" and try to call the method.
the message i get:
What i have to write in the boxes? Can someone make an…

JavaBeginner
- 15
- 2
- 3