-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added assignment 1, 2, 3, 4, 5 (WIP) #3
base: master
Are you sure you want to change the base?
Conversation
package asgn.model; | ||
|
||
//Class to describe the properties of item | ||
public class Item { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try lombok plugin.
Lombok removes the extra boiling plate code like getter and setters, Constructors etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. I am adding it.
public static ArrayList<Item> getInputItem() { | ||
Scanner sc = new Scanner(System.in); | ||
|
||
System.out.println("Enter the following product details:"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In question it was stated to use command line inputs. Not the scanner.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can take command line input for first input.
But for multiple inputs I will have to use scanner?
|
||
private static void performAction(int choice) { | ||
switch (choice) { | ||
case 1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not use hardcoding
|
||
import asgn.model.Node; | ||
|
||
public class GraphOperation { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Every operation is in same class. Try to segregate the common logic
|
Khushbu Goyal (SGSITS Indore) : Added Assignment no. 1 and Assignment no. 2