Posts by alexpfx • 172 points
5 posts
-
0
votes1
answer353
viewsA: Convert Brazilian to American date to parse for a Date object
I got it using the lib intl of Dart in this way: import 'package:intl/date_symbol_data_local.dart'; ///Pega string no formato "23 março 2019" e adiciona os "de" ficando: "23 de março de ///2019"…
-
-1
votes1
answer353
viewsQ: Convert Brazilian to American date to parse for a Date object
I’m making an application that reads an html page and gets some information, among them a date. This date is in Portuguese, in the following format: "23 March 2019". I wonder if you have any way to…
-
1
votes0
answers177
views -
1
votes1
answer348
viewsA: How to build a relative URL securely?
You can use the Java API itself: java.net.URI e java.net.URL. @Test public void urlTest() throws URISyntaxException, MalformedURLException { String base = "http://server///"; String p1 = "/path/";…
-
4
votes2
answers212
viewsA: Problems to delete repeated numbers in an Arraylist<String>
The data structure you are using is not ideal for what you want to do. I don’t know why you are using Arraylist, but if you need the structure not to accept repeated values the ideal is to use Set…