[Demonstration 1]

[Buggy Method]
public static void addNewFacility() {
    String name, typeOfBuilding, street, city, state, zip;
    int capacity, numOfRooms, numOfStaff;
    System.out.println("Please enter the name of the facility: ");
    name = scanner.nextLine();
    System.out.println("Please enter the type of building for the facility: ");
    typeOfBuilding = scanner.nextLine();
    System.out.println("Please enter JUST the street address (The rest will come later): ");
    street = scanner.nextLine();
    System.out.println("Please enter the city where the facility is located: ");
    city = scanner.nextLine();
    System.out.println("Please enter the state where the facility is located: ");
    state = scanner.nextLine();
    System.out.println("Please enter the zip code for the facility: ");
    zip = scanner.nextLine();
    System.out.println("please enter the maximum capacity available for the facility: ");
    capacity = scanner.nextInt();
    System.out.println("Please enter the number of rooms this facility has: ");
    numOfRooms = scanner.nextInt();
    System.out.println("Please enter the number of staff running the facility: ");
    numOfStaff = scanner.nextInt();
    myFacilities.add(new Facility(name, typeOfBuilding, new Address(street, city, state, zip), capacity, numOfRooms, numOfStaff));
    System.out.println("Done! The new facility has been added!");
}

[Buggy Hunk]
capacity, numOfRooms, numOfStaff));

[Patch]
capacity, numOfRooms, numOfStaff, new Maintenance()));

[Demonstration 2]

[Buggy Method]
@Override
public void run(String... args) throws Exception {
    Stage stage = StageFactory.createDefaultStage();
    ((TicketServiceImpl) ticketService).setStage(stage);
    System.out.println("\n\n Welcome to Ticketing Service system.");
    Scanner scanner = new Scanner(System.in);
    String userInputStr = readInput(scanner, INSTRUCTIONS);
    int userInput = parseInt(userInputStr);
    do {
        switch(userInput) {
            case 1:
                numOfAvailableSeats(scanner);
                break;
            case 2:
                findAndHoldSeats(scanner);
                break;
            case 3:
                reserveSeats(scanner);
                break;
            default:
                System.out.println("Please enter valid number or 'exit'. ");
                break;
        }
        userInputStr = readInput(scanner, INSTRUCTIONS);
        userInput = parseInt(userInputStr);
    } while (!"exit".equalsIgnoreCase(userInputStr));
}

[Buggy Hunk]
System.out.println("Please enter valid number or 'exit'. ");

[Patch]
System.err.println("Please enter valid number or 'exit'. ");

[Demonstration 3]

[Buggy Method]
private void gettingDataFromService() {
    pDialog = new ProgressDialog(MenuActivity.this);
    pDialog.setMessage("Loading...");
    pDialog.show();
    final StringRequest stringRequest = new StringRequest(GET_MENU + "1", new Response.Listener<String>() {

        @Override
        public void onResponse(String response) {
            String[] keysValues = new String[] {};
            // Showing progress dialog before making http request
            try {
                JSONObject jsonObjec = new JSONObject(response);
                JSONObject menuJsonObject = jsonObjec.getJSONObject("MenuList");
                JSONArray taxName = jsonObjec.getJSONArray("Taxes");
                gettingTaxValues(taxName);
                Iterator<String> foodTimes = menuJsonObject.keys();
                while (foodTimes.hasNext()) {
                    String foodTime = foodTimes.next();
                    // her i will get the cousin(Italin,..etc) of muenu list
                    JSONObject jsonObject = menuJsonObject.getJSONObject(foodTime);
                    Iterator<String> countryCousins = jsonObject.keys();
                    ArrayList<Items> itemses = new ArrayList();
                    while (countryCousins.hasNext()) {
                        String countryCousin = countryCousins.next();
                        JSONArray jsonArray = jsonObject.getJSONArray(countryCousin);
                        Content[] contents = new Content[jsonArray.length()];
                        if (!countryCousin.equals("Beverages")) {
                            Items items = new Items();
                            items.setName(countryCousin);
                            for (int i = 0; i < jsonArray.length(); i++) {
                                JSONObject contentJson = jsonArray.getJSONObject(i);
                                Content content = new Content();
                                content.setMenu_item_id(Integer.parseInt(contentJson.getString("id")));
                                content.setName(contentJson.getString("item"));
                                content.setMenu_types(contentJson.getString("menu_type"));
                                content.setCountryCusine(countryCousin);
                                content.setPrice(Float.parseFloat(contentJson.getString("price")));
                                content.setIngredients(contentJson.getString("description"));
                                content.setIs_special(contentJson.getString("is_special"));
                                contents[i] = content;
                            }
                            items.setContent(contents);
                            itemses.add(items);
                        } else {
                            for (int i = 0; i < jsonArray.length(); i++) {
                                JSONObject contentJson = jsonArray.getJSONObject(i);
                                Iterator<String> bevTypes = contentJson.keys();
                                while (bevTypes.hasNext()) {
                                    String bevType = bevTypes.next();
                                    Items items = new Items();
                                    items.setName(countryCousin + "-" + bevType);
                                    JSONArray jsonbevType = contentJson.getJSONArray(bevType);
                                    Log.e("", "" + jsonArray);
                                    Content[] contentBevlist = new Content[jsonbevType.length()];
                                    for (int j = 0; j < jsonbevType.length(); j++) {
                                        JSONObject contentBev = jsonbevType.getJSONObject(j);
                                        Content content = new Content();
                                        content.setMenu_item_id(Integer.parseInt(contentBev.getString("id")));
                                        content.setName(contentBev.getString("item"));
                                        content.setMenu_types("");
                                        /*content.setCountryCusine(countryCousin);*/
                                        content.setPrice(Float.parseFloat(contentBev.getString("price")));
                                        content.setIngredients(contentBev.getString("description"));
                                        content.setIs_special("3");
                                        contentBevlist[j] = content;
                                    }
                                    items.setContent(contentBevlist);
                                    itemses.add(items);
                                }
                            }
                        }
                    }
                    Items[] item1 = new Items[0];
                    pagerItem.put(foodTime, itemses.toArray(item1));
                }
                //doFilterMitheCountryCusine(menuJsonObject);
            } catch (JSONException e) {
                Log.e("", "" + e);
            }
            HISMenuPageAdapter menuPageAdapter = new HISMenuPageAdapter(getSupportFragmentManager(), pagerItem);
            mVpMainMenu.setAdapter(menuPageAdapter);
            hidePDialog();
        }
    }, new Response.ErrorListener() {

        @Override
        public void onErrorResponse(VolleyError error) {
            hidePDialog();
            if (!(MenuActivity.this.isFinishing())) {
                Util.createErrorAlert(MenuActivity.this, "", "Server Error");
            }
        }
    });
    mQueue.add(stringRequest);
}

[Buggy Hunk]
final StringRequest stringRequest = new StringRequest(GET_MENU+"1",

[Patch]
final StringRequest stringRequest = new StringRequest(GET_MENU+mAppPreferences.getRESTAURANT_ID(),