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

Chatbotscreate a small networked chat application that is

Chatbots Create a small, networked chat application that is populated by bots. Introduction On an old server park, filled with applications from the early days of the internet, a few servers still run one of the earliest ...

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 ...

Assignment game prototypeoverviewfor this assessment task

Assignment: Game Prototype Overview For this assessment task you are expected to construct a prototype level/area as a "proof of concept" for the game that you have designed in Assignment 1. The prototype should function ...

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 ...

In relation to javaa what is constructor the purpose of

(In relation to Java) A. What is constructor? the purpose of default constructor? B. How do you get a copy of the object but not the reference of the object? C. What are static variables and instance variables? D. Compar ...

Project descriptionwrite a java program to traverse a

Project Description: Write a java program to traverse a directory structure (DirWalker.java) of csv files that contain csv files with customer info. A simple sample in provided in with the sample code but you MUST will r ...

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -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 Windowed G ...

Applied software engineering assignment 1 -learning

Applied Software Engineering Assignment 1 - Learning outcomes - 1. Understand the notion of software engineering and why it is important. 2. Analyse the risk factors associated with phases of the software development lif ...

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. ...

  • 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