News App in Java | Java Project - 4 | Tamil

Опубликовано: 16 Июль 2026
на канале: code Solve execute
724
34

What is API :    • What is API? | Realtime Example | Tamil  
Final Keyword :    • Java Final Keyword | final class, final va...  
Exception Handling :    • Java Exception Handling  | Try, Catch, Fin...  



In our code change following line

" String apiurl = baseurl + "Category=" + cat + "&language=en&apikey=" + apikey;"

change into

" String apiurl = baseurl + "category=" + cat + "&language=en&apikey=" + apikey; "

Capital "C" into small "c ". Now you can get these news also
1.business
2.entertainment
3.general
4.health
5.science
6.sports
7.technology.

To create an API key:

~ Click the link to visit the News API official website : https://newsapi.org/ .
~ Click the "Generate API Key" button.
~ Enter your email and password, then submit.
~ Copy the API key and paste it into your program.