I know im dumb. Not sure how to complete my JAVA assignment

I have an assignment where it says
The parameters must be checked to ensure they are not null or empty nor a negative value.
I am having trouble understanding what checking to ensure they are not null or empty nor negative means.

//My constructor:

`public A0_Realtor(String listingNumberParam)
{

    setListingNumber(listingNumberParam);
}

Setter that compiles but doesn’t work? if a create a default constructor and check the value, I find that the value is null and doesn’t print out invalid value

//Getter not sure if this does anything

enter code herepublic String getListingNumber(){
return listingNumber;
}

//Setter

`public void setListingNumber(String newListingNumber){

    if( newListingNumber != null && newListingNumber.isEmpty()){
        System.out.println("Invalid value");


    } else {
        listingNumber = newListingNumber;


    `public void setListingNumber(String newListingNumber){

    if( newListingNumber != null && newListingNumber.isEmpty()){
        System.out.println("Invalid value");


    } else {
        listingNumber = newListingNumber;


    }

//something that prints asking price. I suspect I am just getting null because of the”void” i typted?

`public void printDetails (){
System.out.println(“MLS Number: “+ listingNumber);
}

My output :

MLS Number: null

?????????????????????????????????????????????????????????????????????????????????????????

Recibir en PHP, con un debugger data desde una aplicacion android (java) que envia por http

Actualmente tengo un servidor php y una aplicacion java en Android funcionando perfecto (digamos)
Estoy usando para enviar parametros desde android http, y como IDE en PHP “eclipse”

Queria saber si es posible, o si existe alguna otro IDE en vez de eclipse que pueda recibir a traves de una envio http desde android, (como actualmente lo hago con eclipse), y poder asi debuggear el servidor.

Criação de chat por sala – Socket Java

Estou fazendo um projeto da faculdade e sou iniciante. Preciso criar um chat por sala, onde a mensagem enviada em uma, não deve ser apresentada na outra. Vocês tem alguma ideia de como posso limitar o envio da mensagem por sala?

java – SonarQube flagging String literal duplicated for Sql query bind parameters

We are using SonarQube lint for code quality analysis. The problem is, it is flagging query parameter binding literals as duplicated. However, declaring them as constant does not make sense.

Eg:

String queryStr = "select * from Person p where p.firstName=:firstName";
Query personQuery = session.createQuery(queryStr);
personQuery.setParameter("firstName", "Mark");

Sonarqube is flagging repeated String literal firstName. However, I feel the rule is invalid for this use case because declaring them as constant and changing them at one place won’t work. Because the parameter has to just match what is used in query String.

It does not involve any business logic or contract. Is my interpretation correct? If so, How do I go about convincing my peers about it?

Responsive web design and Development for $95

Responsive web design and Development

Please Message me BEFORE placing order to discuss your project.

I will design and develop fully dynamic & responsive Website or Landing Page for you that will be eye catching, responsive, Google-friendly at affordable rates.

I am a Website Developer having 3+ years of professional experience in this Industry. My focus is customer satisfaction, precision, accuracy and quick services.

Why Hire Me?

100% Client Satisfaction Guaranteed,

3+ years’ experience in Web Design and development,

Fluent in English and Project Understanding,

Affordable Price,

Free Consultation,

Always Available,

.

java – Generate Rotating Strings

I am trying to comeup with an algorithm which adds rotating set of strings and I am now stuck at generating the next values when the array reaches the last element. Here’s my code so far

    String() strings = {"a", "b", "c", "d" , "e"};
    List<String> regexList = new ArrayList<>();
    int charsToBeRemoved = strings.length - 2;

    for( int i = 0; i < strings.length; i++ )
    {
        int counter = 1;
        StringJoiner p = new StringJoiner( "|" );
        p.add( strings(i) );
        for( int j = i + 1; j < strings.length; j++ )
        {
            p.add( strings(j) );
            counter += 1;
            if( counter == charsToBeRemoved )
            {
                counter = 1;
                j = ( charsToBeRemoved - 2 ) > 0 ? j - ( charsToBeRemoved - 2 ) : j;
                regexList.add( p.toString() );
                p = new StringJoiner( "|" );
                p.add( strings(i) );
            }
        }
    }

My code generates the following output (a|b|c, a|c|d, a|d|f, b|c|d, b|d|f, c|d|f). However, what I am trying to generate is (a|b|c, a|c|d, a|d|f, b|c|d, b|d|f, b|f|a, c|d|f, c|f|a, c|a|b). This is for a string having length 5. In this case I only need 3 like above. If the input is 6 I need 4 string rotations like wise.

Kindly help me generate this rotating string set.

flash – Flex Build error Error of java

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.common.base.internal.Finalizer (file:/C:/computer/AIRSDK_Compiler/lib/guava-r08.jar) to field java.lang.Thread.inheritableThreadLocals
WARNING: Please consider reporting this to the maintainers of com.google.common.base.internal.Finalizer
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

Anybody can explain this error in the Flex?

Springboot (Java) – Is mandatory for BDD the use of Cucumber?

I was wondering if its a requirement to consider BDD the use of Cucumber framework or other framework of test abstraction.

Because I was playing around with @SpringbootTest and TestContainers(both compatibles with Cucumber) but I “discovered” the @DisplayName() on each test method/class and I thought that can “replace” cucumber, at least in the backend side.

I’m trying to avoid having a dedicated environment for acceptance/integration/regression tests at API level (considering a microservice system has everything dockerized) always with a controlled data set for each test.
Every microservice dockerized provide a default data to integrate tests.

Is this a mindblowing scope and I’m really wrong of wanting something like that? Would bring a lot of nightmare in the testing part for maintenance?

java – Erro vetores, só é possível gravar no array, e não ler. ( e vice versa )

Variáveis declaradas vetores dizem este erro: só é possível gravar no array, e não ler. São declaradas conforme a inserção do usuário.

Já a variável double[] vMensal = new double [quant]; Da a inversão do erro: só é possível ler o array, e não gravar. Pois será determinado como resposta de um calculo que ainda farei dos valores obtidos.

inserir a descrição da imagem aqui

Como calcular horas y minutos trascurridos de dos fechas en java desde Mysql

Como calcular las horas y minutos trascurridos de dos fechas en java desde esta fecha 2020-05-11 17:33:12 a esta fecha 2020-05-12 15:30:23, ya que las fechas los tengo ya en la base de datos Mysql, esto es con el fin de calcular las horas que un cliente duro estacionado su carro de un estacionamiento.