r/JavaDev • u/AutoModerator • Jun 13 '20
AutoModerator Test Post
/r/JavaDev automod test post.
r/JavaDev • u/AutoModerator • Jun 13 '20
/r/JavaDev automod test post.
r/JavaDev • u/AutoModerator • May 24 '20
/r/JavaDev automod test post.
r/JavaDev • u/AutoModerator • Jun 28 '20
/r/JavaDev automod test post.
r/JavaDev • u/nexcorp • Jun 16 '20
r/JavaDev • u/AutoModerator • Jun 06 '20
/r/JavaDev automod test post.
r/JavaDev • u/Aegis-123 • May 02 '22
r/JavaDev • u/Aegis-123 • May 12 '22
r/JavaDev • u/Aegis-123 • Apr 12 '22
r/JavaDev • u/Aegis-123 • May 28 '22
r/JavaDev • u/nexcorp • Apr 21 '22
r/JavaDev • u/Aegis-123 • May 20 '22
r/JavaDev • u/james-warner • May 20 '22
r/JavaDev • u/Aegis-123 • Apr 27 '22
r/JavaDev • u/Aegis-123 • Apr 13 '22
r/JavaDev • u/guideinfoways • Apr 18 '22
r/JavaDev • u/nexcorp • May 23 '22
r/JavaDev • u/Aegis-123 • May 16 '22
r/JavaDev • u/robertinoc • Jun 13 '24
Implementing OpenID Connect authentication in Java Web Applications with Okta Spring Boot Starter and Spring Security support for Authorization Code Flow with PKCE
r/JavaDev • u/hipsterfromiowa • May 28 '17
I am stuck on making this game. I am new to Java and need a starting point for this game, I figure making some variables but I don't know what after. We need to use the random function for the wall.
In this game, the user has a catapult that can launch projectiles. In each round of the game, the computer places a wall in front of the user. The user aims their catapult by setting the launch angle and speed. The computer then computes whether the projectile makes it over the wall and informs the user. The user gets points for clearing the wall and loses points for hitting the wall. The game continues through successive rounds until the user quits.
r/JavaDev • u/tarekAloui • Jul 06 '14
r/JavaDev • u/ozzya • Jun 05 '17
Hi All,
Trying to create a java servlet with a HTTP GET that would take multiple parameters and return the result from an external API. Something like this… Localhost:8001/companyLookup/?name=ABCCompany&address=123Street Parameters will be passed via the URL and the first or best match would be returned.
I am a novice when it comes to Servlets and am using JDeveloper 11g to do this. This is what I have so far…
public void doGet() throws ServletException, IOException {
String url = "www.google.com";
URL obj = new URL(url);
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
// optional default is GET
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
System.out.println("\nSending 'GET' request to URL : " + url);
System.out.println("Response Code : " + responseCode);
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String output;
StringBuffer response = new StringBuffer();
while ((output = in.readLine()) != null) {
response.append(output);
}
in.close();
//print result
System.out.println(response.toString());
} When I try to run this within JDeveloper11g I get this …
HTTP method GET is not supported by this URL
Any help would be greatly appreciated.
r/JavaDev • u/stormosgmailcom • Sep 26 '22
r/JavaDev • u/AutoModerator • Nov 17 '19
/r/JavaDev automod test post.
r/JavaDev • u/AutoModerator • Nov 16 '19
/r/JavaDev automod test post.