Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

Object Oriented Application Development

I am having some issues with my assignment for IT 511 (Object Oriented Application Development). When I go to test the following code I receive numerous errors and I am not sure why

package message.array;

import java.util.Scanner;

Need assignment help for this question?

If you need assistance with writing your essay, we are ready to help you!

OUR PROCESS

Order

Payment

Writing

Delivery

Why Choose Us: Cost-efficiency, Plagiarism free, Money Back Guarantee, On-time Delivery, Total Сonfidentiality, 24/7 Support, 100% originality

/**

 *

 * @auth gregory.hauptman

 */

public class ShoutBox {

  public static void main(String[] args) {

    String[] messages = new String[10]; //declaring 10 arrays

    messages[0] = “Today is May 2, 2017”;

    messages[1] = “This year is almost half over”; 

    messages[2] = “The weather is beautiful today”;

    messages[3] = “Why is the weather always nice when I have to work?”;

    messages[4] = “Hopefuly the weather is beautiul tomorrow”;

    messages[5] = “I am learning the Java programming language”;

    messages[6] = “Hacksaw Ridge was a great movie!”;

    messages[7] = “I am looking forward to Red Dead Redemption 2 later this year”;

    messages[8] = “It’s good to have family and friends near by”;

    messages[9] = “This is the final project for this course”;

    String m = new ShoutBox().shoutOutCannedMessage(messages); //place the messages in the shoutbox

    System.out.println(m); 

  }

  public String shoutOutCannedMessage(String[] messages){

    Scanner in = new Scanner(System.in);

    for(int i = 0; i < messages.length; i++){ //creates a number to relate each of the messages

      System.out.println(i+ “. ” +messages[i]); //Print out the messages with number assignment

    }

    System.out.println(“Please choose a message”);

    int idx = in.nextInt(); //copies the array an allows the answer to be input

    String message = messages[idx]; //allows the program to match the number to the message

    return message; //prints out the message associated with the selected number

  }

}

"Order a similar paper and get 15% discount on your first order with us
Use the following coupon
"FIRST15"

Order Now