I have a program in Java to know how many ports are open but I'm not sure where to put the method to count the ports. Can I create a count method for open ports within the Porta class?
package programa2;
public class Programa2 {...
In Python, we have method reverse within List . It reverses the order of a list .
Example:
[1, 2, 3].reverse() // [3, 2, 1]
But this method is not present in a string.
example (Python):
myString = "The String"
myS...
In my project I have the ListLoader class, responsible for interpreting a list and uploading files described in it.
My goal is to be able to save this and other classes in a .as extension file and be able to import it into my current project a...
I wonder if it is possible to make changes to the CSS of a class by JavaScript. We were able to get the divs by id with the document.getElementById("nomedaiddadiv"); command. Is there any command that does the same, but with the divs cl...
What defines a stable sort algorithm?
In this question I've been told a bit about stable and unstable ordering, but I still do not see the advantage of using an unstable one.
In what cases can we use unstable ordering? Is it always prefe...
I have a program with 2 classes. The player class that contains only the name attribute:
public class player {
String name;
}
And I have the Main class that has the function below and the same call in main
Public class Principal{
public s...
I'm studying through the book Introduction to Object Oriented Programming with C ++ (Antonio Mendes da Silva Filho), and I implemented an example of it as follows:
#include <iostream>
using namespace std;
class Contador{
public:...
I have a class for Image Upload, and I want to get the value of a variable within a function called salvar() !
I want to create a function called getNome() to get the name of the image with extension. But the variable with...
I'm currently working on PHP and realized that at the time of implementing classes I can not just instantiate and then implement below the class using the :: scope selector.
Example:
class Lista{
public:
Lista(){
first = last...