Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package day6_morelists;
- import java.util.ArrayList;
- import java.util.Scanner;
- /**
- *
- * @author sao_7
- */
- public class Day6_MoreLists {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- tasks.getAddLists();
- tasks.outputList(); //закомментировать
- tasks.removeFromList(); //закомментировать
- System.out.println("Ievadiet darbibu: add, remove vai outputList");
- String choice = sc.next();
- System.out.println();
- String add = tasks.getAddLists();
- String remove = removeFromList();
- String list = list();
- switch (choice) {
- case "add":
- System.out.println(choice = sc.next() + " tiek pievienots sarakstam");
- break;
- case "remove":
- System.out.println(choice = sc.next() + " tiek dzests no saraksta");
- break;
- case "list":
- System.out.println("Saraksts: " + (choice = sc.next()));
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement