Questions tagged as 'java'

1
answer

Use a class in another class

Good morning. I'm new to Java, but come on. I have a java class and need to use all of its methods in another main class. There is a problem, I'm already using an extends in both classes. I need to use all methods of this class (I pu...
asked by 04.12.2015 / 15:46
1
answer

Use the same getInputStream () for 2 different bufferedReader

I need to access a file on an HTTP server and retrieve information from 2 different sites within that file. At this moment I can withdraw from only one. My doubt is, I can simply do: BufferedReader in = new BufferedReader(new InputStreamReader...
asked by 02.12.2015 / 18:39
1
answer

What is Context and Generated Keys?

I would like to know what exactly is the context of class connection (I have already seen methods in relation to this as getConnectionFromContext , or something like this) and Generated Keys as the PreparedStattion constant:...
asked by 18.10.2015 / 19:10
1
answer

How to bring a JSP page to the content of a postgis query?

I have postgis with a database that I have downloaded from ibge and I need to make an application in javaweb that reads the name of a municipality and brings back the data in the svg format and displays on the screen the region passed as a param...
asked by 16.06.2016 / 03:11
1
answer

Retrieve geographic data via an HTTP request via Google Maps URL

Good morning guys. I'm trying to retrieve some geographic information based on latitude and longitude. To retrieve such information I'm trying to make a request via URL through this link: Google Maps Geolocation API . It returns me an XML...
asked by 14.10.2015 / 14:13
1
answer

Entities marked FETCH LAZY are returning "null" even after a call to the GET method

Hello, good morning, friends, Why are my entities marked as fetch lazy returning "null" even when they are invoked via a get? What I learned in several courses is that when I make the first call to a get method, hibernate would load the da...
asked by 19.11.2018 / 12:22
1
answer

How to generate TimeFormatter in YYYY-mm-DDThh format: mm: ss-TZ

I have the string 2018-09-26T10:36:40-03:00 and would like to convert it to LocalDateTime . DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd-MM-yyyy'T'HH:mm:ss'Z'"); LocalDate.parse("2018-09-26T10:36:40-03:00",format...
asked by 24.10.2018 / 15:38
1
answer

Check if the graph is connected

Does anyone know how I can implement a method that checks me if an untargeted graph is connected and, if it is not, return its connected components? public void connectComps(){ ArrayList<LinkedList<Estacao>> css = new ArrayList...
asked by 17.11.2018 / 19:13
2
answers

How do I turn on the camera flash?

I can not activate the camera flash to use as a flashlight. The code I'm running has taken from tutorials on the internet. package com.getten.home; import android.hardware.Camera; import android.os.Bundle; import android.support.v7.app.Action...
asked by 01.09.2015 / 01:50
2
answers

How to use dll in Java

How do I include dll files in a Java project using Eclipse?     
asked by 16.07.2015 / 13:03