Questions tagged as 'metodos'

1
answer

How to save the input of a Java dialog?

When I try to read or write to an external file in java. The program compiles to me but when the code is executed and I write the name of the file that I want that it reads, the program stays run but it does not show anything to me in screen....
asked by 09.12.2018 / 09:11
1
answer

Scope ruby comments rated lower

I'm a neophyte in this Ruby, and for an application I'm doing, I need to define a method and a scope to show me the worst rated comments in ascending order: first worst and then improving. I have written the inverse, thanks to some guidelines...
asked by 21.02.2018 / 19:55
1
answer

laravel pluck square brackets and double quotes

I have the following function that shows a student's course public function show($id) { $alumno = Alumno::find($id); $curso = Matricula::where('id_alumno',$id)->get()->pluck('curso_alumno'); dd($curso); return view('alumn...
asked by 15.06.2017 / 01:26
0
answers

Help with an ArrayList [closed]

Good afternoon. Someone could help me with the ArrayList Java - Netbeans methods. Thank you who can answer     
asked by 26.04.2017 / 21:12
0
answers

AlarmManager: problems with set and cancel

I am starting to create an activity to manage alarms for an application. The problem is that when entering the set and cancel methods it says "Can not resolve symbol 'set'" and "Can not resolve symbol 'cancel'" respectively. Let's see if anyone...
asked by 30.04.2017 / 18:41
1
answer

Implement fragment method

I stopped programming long ago and well, now that I am developing I am in a mess. What happens is that I have an application with navigation drawer and that calls fragments. Now, I followed a tutorial to login with firebase and I want the logout...
asked by 30.11.2017 / 20:20
5
answers

Java. Call a method that returns an array and display it without displaying the memory address

My question is, how can I show from my main, a method that is returning an array without returning a memory address ?. My code is now like this. Main System.out.println(ciudad1.getMaximas()); //Aqui quiero que me imprima lo que contiene el ar...
asked by 28.01.2017 / 16:45
3
answers

Why does Null Exception give me?

My method is as follows: public boolean addJugador(String nombre){ boolean add=true; Jugador j= new Jugador(nombre); if(nombre!=mesa[jugadoresActuales].getNombre()){ mesa[jugadoresActuales]= j; jugad...
asked by 14.11.2017 / 13:51
3
answers

Can you make method calls by clicking on a button in HTML5?

The question is that if I can make calls to methods to not do so much code, I must show a table by pressing different buttons. <button>Más Opciones</button> <button>Más Opciones</button> <TABLE align="center">...
asked by 09.11.2017 / 14:54
1
answer

Use the same method to count one option at a time (Java, eclipse)

Hello, this is my first question and my teacher asked me for homework for an exam that we did with the following program in java (we use eclipse mars): public static void main(String[] args) { System.out.println("Total de Alumnos:...
asked by 02.03.2017 / 05:35