Posts by Paulo Eduardo Moreira • 11 points
2 posts
-
0
votes2
answers45
viewsA: I cannot capture the message I send in my Exception Java Custom
Good night, follows an example of the form you can use, First create an Exception class in the style: public class RecursoNaoEncontradoException extends RuntimeException { private static final long…
javaanswered Paulo Eduardo Moreira 11 -
1
votes3
answers131
viewsA: Subtract 1 month from a date string in the dd/mm/yyyy format
Good night David, if you want to use the java.time libraries, we can resolve it as follows: public class SubtrairUmMesDaData { public static void main(String[] args) { String date =…