Questions tagged as 'metodos'

2
answers

How to execute several methods of a class in the same PHP line [duplicated]

Hi, I wanted to know what structure the class should have so that once instantiated, several methods can be executed in a single line, for example I saw in several CMS or projects this: $NombreClase = new NombreClase(); $NombreClase->crea...
asked by 02.08.2017 / 20:40
4
answers

How do you call a method from another class?

Hello, sorry, I have a problem in my java studio? How to call a method from another class? Example: public class metodos { public static void mensaje(){ System.out.println(" hola mundo "); } } example I have this For exampl...
asked by 07.10.2016 / 03:35
3
answers

How to print class data?

In the method queueAnalysis , when I send to print System.out.println("Original: " + queue + "\n"); , System.out.println("colados: " + names + "\n"); and          System.out.println("Cola final: " +queue); , gives me as...
asked by 21.09.2017 / 17:53
2
answers

Question innerWidth & innerHeight

Hello, I do not think the size of the screen changes when I resize the screen <!DOCTYPE html> <html lang="es"> <head> <title>Práctica</title> <meta charset="UTF8"/> </head> <body>...
asked by 20.12.2017 / 18:37
1
answer

How to make an arrangement of objects within another class? c ++

I need to make an arrangement of size 10 objects within a different class, The only way I know how to do it is this: (B is another class) class A { private: B arreglo[10]; public: A(); A(string, int, B arreglo[10]); }; T...
asked by 19.09.2018 / 20:30
1
answer

How the parameters received in a method should be treated

Cordial greeting. I am a student of development, I am developing a program and in a class I have a method with several parameters, the question that arises is that within the method as I should treat those parameters, should I assign them to...
asked by 25.03.2018 / 17:53
1
answer

Pass two variables to a method in laravel

Help I'm stuck in a part of my project, I'm doing an intranet for a Lyceum. The subject is that I want to place an "Observation" to a Student, for this I need the "id" of the Student, the "id" of the Subject, and the "id" of the Teacher that is...
asked by 08.03.2017 / 01:09
1
answer

Send a Boolean from an adapter to its fragment

I have a problem, maybe you can help me, in the onclick event of a recycler I want to send a boolean to its fragment to update a method, but I do not know how to do it. before I had done it but not with an adapter from a fragment, this is the...
asked by 25.10.2018 / 02:24
1
answer

How can I call an array that is inside a method to another method within the same class?

This is what I've been doing so far public class Proyecto_progra1 { public static void main(String[] args) { String opcion; int num = 0; do{ opcion = JOptionPane.showInputDialog("1- Nombre de conductores.\n" +"2-...
asked by 10.03.2018 / 02:59
1
answer

JSF - Pass conditioned checkbox value for Update statement

I have the following problem, I have a datatable in Primefaces that shows me a series of records, to which I can edit them. At the time of editing, it sends me a Modal window that shows me the editable fields between them, a checkbox that is pre...
asked by 01.02.2017 / 17:29