/*     */   public String getW(String state, String city)
/*     */     throws IOException
/*     */   {
/* 329 */     String J = "";
/* 330 */     String web = "http://api.wunderground.com/api/4ebc3b3ae2c41145/geolookup/conditions/forecast/q/" + state + "/" + city + ".json";
/*     */ 
/* 333 */     URL oracle = new URL(web);
/* 334 */     URLConnection yc = oracle.openConnection();
/* 335 */     BufferedReader in = new BufferedReader(new InputStreamReader(yc.getInputStream()));
/*     */     String inputLine;
/* 338 */     while ((inputLine = in.readLine()) != null)
/*     */     {
/*     */       //String inputLine;
/* 339 */       JsonParser jp = new JsonParser();
/* 340 */       JsonElement root = jp.parse(in);
/* 341 */       JsonObject rootobj = root.getAsJsonObject();
/*     */ 
/* 343 */       String forecast = rootobj.get("forecast").getAsJsonObject().get("txt_forecast").getAsJsonObject().get("forecastday").getAsJsonArray().get(0).getAsJsonObject().get("fcttext").getAsString();
/*     */ 
/* 346 */       J = forecast;
/*     */     }
/* 348 */     return J;
/*     */   }