Posts by leoSandrini • 153 points
13 posts
-
1
votes1
answer685
viewsA: HTTP Status 405 - Method Not Allowed in the @DELETE method
I tested with Postman and it worked] Probably, Netbeans was trying to make the request as if it were a GET anyway. Then I saw the mistake I made in the code that was making the request. I was…
-
0
votes1
answer685
viewsQ: HTTP Status 405 - Method Not Allowed in the @DELETE method
I created a webservice that accesses a Mysql database, but I can’t delete records, I always get the following return: HTTP Status 405 - Method Not Allowed. The method Received in the request-line is…
-
3
votes1
answer2370
viewsQ: My dbms output is not displayed
I’m testing a simple exit from DBMS in Sqldeveloper. I created the connection, ran the set serveroutput on to enable the exits DBMS, but when I run my anonymous code pad, on Saída do Script he…
-
1
votes0
answers833
viewsQ: Error consuming JSON: "json Parsing error value <!doctype of type java.lang.string cannot be converted to jsonobject"
I’m trying to consume a JSON in my application. I created a Splashscreen and in it I am trying to download the data from the file JSON and send to my Masteractivity, where, then, I’m going to build…
-
0
votes1
answer32
viewsQ: Anoimate function only works in Chrome
Hello! I’m playing a little game with javascript, where the program gives the player a certain amount of time to write a sentence, counts the letters, words and presents the results on a scoreboard.…
-
1
votes1
answer25
viewsQ: App does not go through login
I’m trying to validate the login, but is passing straight through and entering the home, I don’t know what could be going on: import { Component } from '@angular/core'; import {LoginPage} from…
-
0
votes1
answer61
viewsQ: Problem to diagram Divs
Problem to diagram Divs favorite I need to go as green and pink Ivs under the dark and light blue, leaving a larger div next to all of them, but I don’t know how to work this in CSS. Someone can…
-
2
votes2
answers2323
viewsQ: Error "is not an enclosing class"
I’m doing an exercise in Handler just to test how it works, but I’m trying some problem that I can’t understand. This is my master class code: public class MainActivity extends Activity { protected…
-
0
votes2
answers177
viewsQ: Error using Radiobutton gettext() method
I created a very simple app to calculate an account with extra tip where I enter a value, select a Radio Button with a percentage and it generates the final value as a result. But every time I click…
-
0
votes1
answer960
viewsQ: Link two classes
Hello, everybody! I am developing a work of college that is a mini banking system with Java SE and I am using Swing for interface. I have a little difficulty with the OO paradigm and wanted to know…
javaasked leoSandrini 153 -
1
votes1
answer672
viewsQ: Static method with object as parameter
I am creating a very simple system for enrolling students. I took a class Aluno as follows: public class Aluno { private String nome; private String matricula; private String curso; private int…
-
5
votes1
answer718
viewsQ: How to destroy a Session in java?
To invalidate a session, my teacher passed the following code: HttpSession session = request.getSession(false); if (session!=null){ session.invalidate(); } But after the logout, when I click Back in…
-
0
votes2
answers1857
viewsQ: For in a Java Object Arraylist
I am studying Java and I have a problem in a code I wrote. I need to read the name and age of 3 people and say the name of the youngest and the name of the oldest. I know the best way for a large…