Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

Project Assignment

In this project, you will learn to use some of the "team" features of your preferred IDE (Eclipse or NetBeans). We will use the "Git" source code control system to allow all members of the class to work on the same project at the same time, and then to merge in your changes. This is a "real-world" way of working on code; few developers work on real projects by themselves. (And even then, version control is often useful and used.)

The project is a very simple one. The source file SayHello.java has a main method you need to edit. Add a statement to main to greet the class by displaying a unique string (so your contribution differs from other students'), which should include your name. (You are free to add additional output if you desire, such as a quote or joke.)

I have created a Git repository you can access from the GitHub. This repository contains the initial version of SayHello.java, a README.md file, a .gitignore file, and a bunch of other files needed for a Maven project. (There are also some Eclipse IDE project files in there, to make importing into Eclipse easier.) The initial version has a greeting from the instructor you can use as a model for your own additions. (While it is okay to be a little creative, say by adding a joke or quote, just don't go overboard and add too much!) The URL of the repo is shown below, in the step-by-step directions for each IDE. You can also view the project's website (generated by Maven from the initial version).

Following the directions below, you will create a GitHub account for yourself, and clone the current repo. (IDEs generally require a local repo to work with as well.)

You use the Git repo just like any other Java project. When you are done making a set of changes (for this project you only need to add a single line to main), you must commit your changes. That updates the local repository from your IDE's version. Next, you Push your changes to the class' GitHub repo. During this step you may discover another student has committed some changes after you had checked out the project. If so, you will need to mergeyour changes into the new version. You can also update your local copy of the project, over-writing your files with the latest ones from the repository, and make your change again.

You can perform other Git related operations with Eclipse or NetBeans. (Generally, I find the Git interface for NetBeans more intuitive than Eclipse.) It is expected that students will explore some of these operations. Eclipse assumes you may have multiple projects per repo, and thus creates a project top-level folder within the top (root) of the repo. NetBeans doesn't do that by default, but it is perfectly happy either way, so I set up the GitHub class repo using the Eclipse conventions.

Another issue is that Eclipse doesn't easily import non-Eclipse projects with existing sources. It can be done, but it was easier to create the default Eclipse project files and add them to the repo. They should be ignored by NetBeans, and it shouldn't be modifiable by Git; the repo was set to ignore changes to those files.

You can read about using these features with your IDE using the built in help system you have learned to use in a previous project. For more information visit the Git Home, especially the Git book online, and the other resources found on our class web page.

Using either Eclipse or NetBeans (you don't have to use both, although you can) complete the steps shown below for your IDE to setup a Git project. Then edit the shared Java program, test it, commit your change(s), and finally, push your changes back to the central repository (merging if necessary).

The first step is to make sure your IDE includes the latest Git plug-ins. These almost certainly have been installed already, or you may need to add one or more plug-ins for it. See your IDE's documentation to see how to add plug-ins. (You can add some others if you wish, but until you are comfortable with your basic IDE features, I suggest you resist the temptation to install much extra.) You should also check for IDE updates, and install any found.

There are Windows GUI and command line tools for working with Git and/or GitHub. They are not IDEs however; you view your repos, create new ones, and with some tools, add files or commit new versions of files. As the Git plug-ins for Eclipse and NetBeans includes a full version of Git, you don't need any other tool. (That is, this step is optional). Still, it is handy to be able to run various Git commands outside of an IDE, especially when trying to learn.

Java, Programming

  • Category:- Java
  • Reference No.:- M92664772
  • Price:- $50

Priced at Now at $50, Verified Solution

Have any Question?


Related Questions in Java

Operating systems assignment -problem 1 sharing the bridgea

Operating Systems Assignment - Problem 1: Sharing the Bridge A new single lane bridge is constructed to connect the North Island of New Zealand to the South Island of New Zealand. Farmers from each island use the bridge ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

Assessment instructionsin this assessment you will complete

Assessment Instructions In this assessment, you will complete the programming of two Java class methods in a console application that registers students for courses in a term of study. The application is written using th ...

Can someone kindly help me to consider whether java

Can someone kindly help me to consider whether Java provides the facility of operator overloading? If it does, may you kindly describe how overloading operators can be accomplished? If not, may you kindly describe why yo ...

Retail price calculatorwrite a java program that asks the

Retail Price Calculator Write a JAVA program that asks the user to enter an item's wholesale cost and its markup percentage. It should then display the item's retail price. For example: (If an item's wholesale cost is 5. ...

Assignment - java program using array of objectsobjectives

Assignment - JAVA Program using array of objects Objectives - This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details - For this assignment, you are required to develop a Menu ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As