Skip to content

brinsley734/java-weather-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

java-weather-app

A simple Java console application that fetches real-time weather data using the OpenWeather API.

🚀 Features

  • Get current weather by city
  • Displays temperature, humidity, and condition
  • Uses real-world API integration

Technologies Used

  • Java
  • OpenWeather API
  • JSON parsing (org.json)

How to Run

  1. Compile:
javac -cp .:json-20240303.jar WeatherApp.java
  1. Run:
java -cp .:json-20240303.jar WeatherApp

Example Output

Weather in Mumbai
Temperature: 27.9°C
Humidity: 78%
Condition: haze

Setup

  • Get API key from OpenWeather
  • Replace in code:
String apiKey = "YOUR_API_KEY";

📷 Project Type

Beginner-friendly API integration project in Java.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages