Results 1 to 2 of 2
  1. #1
    SamNotTheMan is offline Member
    Join Date
    Feb 2013
    Rep Power

    Default BlueJ : reviewmaker

    EDIT: This is maybe better. I need to make an review and the review got 2 important parameters, judgement and the name. I need to make it when I give the name, they will give me all the reviews that belong to that name. Also, i need to know what name got the most reviews.

    Hey everyone, I'm searching for a way to make a review maker. It's for school and this is the formulation of the question (beware, it's roughly translated):

    It's a about a website about giving reviews for a restaurant.

    Users of a site pass on reviews. They give the next information:
    - Name of the restaurant
    - Place
    - Price class (5-20 euro, 20-50 euro or above 50 euro)
    - a judgement from 1-10

    It is for sure a certain restaurant can have different reviews. You can choose if you want to save all the reviews in a ArrayList<Integer> , or you just can save them all the way you want. As long as you can request all the reviews from a restaurant.

    The point is, you need to keep the basic data and make a list of all restaurants and there reviews.

    You need to fix all these questions:

    -Given the name of a restaurant and a city array list with reviews
    for that restaurant. If there are no reviews for that restaurant, you may give an empty array list back.

    - the amount of reviews on the site

    - The restaurant with the most reviews

    Now i can make a review, but i can't fix the questions. Any help would be appriciated. It's written in BlueJ and i will give what i already have.

    public class Reviews
    private String naam;
    private String stad;
    private double uitgegeven;
    private double beoordeling;
    private String prijsklasse;

    * @param naam Naam van het restaurant
    * @param stad Plaats van het restaurant
    * @param uitgegeven Het aantal geld uitgegeven aan je bezoek
    * @param beoordeling Een score tussen 1-10 dat de kwaliteit van het restaurant aangeeft
    * @param prijsklasse Prijsklasse waar het restaurant inzit
    public Reviews (String naam, String stad, double uitgegeven, double beoordeling ) {
    this.naam = naam;
    this.stad = stad;
    this.uitgegeven = uitgegeven;
    if (uitgegeven < 20) {
    prijsklasse = "5 tot 20";
    else if (uitgegeven > 50) {
    prijsklasse = "meer als 50";
    else {
    prijsklasse = "20 tot 50";
    this.beoordeling = beoordeling;


    public String getNaam(){
    return naam;
    public String getStad(){
    return stad;
    public String getPrijsklasse(){
    return prijsklasse;
    public double getBeoordeling(){
    return beoordeling;
    Last edited by SamNotTheMan; 02-28-2013 at 11:02 PM.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

Similar Threads

  1. BlueJ IDE
    By jcbmack in forum New To Java
    Replies: 9
    Last Post: 08-08-2012, 07:26 AM
  2. bluej help
    By fatooma92 in forum New To Java
    Replies: 3
    Last Post: 03-06-2012, 04:36 PM
  3. bluej help
    By xpanhol in forum Java Applets
    Replies: 4
    Last Post: 01-29-2012, 01:46 AM
  4. BlueJ - UML
    By Nghi97 in forum New To Java
    Replies: 5
    Last Post: 11-28-2011, 12:03 PM
  5. BlueJ 2.2.0
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 07-07-2007, 02:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts