Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Help with solving error in red createCustomer in the below java code, Thanks! 2 pics below. File Edit View View Navigate Navigate Code Refactor Build

Help with solving error in red "createCustomer" in the below java code, Thanks!

2 pics below.

image text in transcribed

image text in transcribed

File Edit View View Navigate Navigate Code Refactor Build Run Tools VCS Window Help Uppgift1 - Uppgift1.java lor 29 Uppgift1.java CustomerBuilder.java 43 44 45 46 47 pgift1 src steaxe2 Uppgift1 m main Project - Uppgift1 -- /Desktop/eclipse-workspace/ > idea > bin out v src v steaxe2 Account BankLogic Customer CustomerBuilder Uppgift1 e.classpath project 1. Uppgift1.im! Idle External Libraries Scratches and Consoles 48 Av uxels 49 50 A 51 Uppgifti ca at X Customer.java X BankLagic java x Account.java X 1L while (true) 01 A6 A1 x 71 A v xels { System.out.println("Skriv in kundens personnummer: "); ssn = sc.nextInt(); if (hashSet.contains (ss)) { System.out.println("Pers.nr.finns redan"); cantinue } else break; } Bild hashSet.add(ss); System.out.println("Skriv in kundens namn: "); sc.nextLine(); String name = sc.nextLine(); = U/sc.nextLine(); //Customer customer = new Customer(ssn, name); Customer customer = new Customer().setssn(ssn).setName(name).createCustomer; Bank.addCustomer (customer); System.out.println("Kund tillagd med unikt personnummer: + customer.getSSNO); C#Ba 52 A 53 54 55 56 57 58 59 60 II 61 62 } 63 64 break; 65 66 67 case 2: { System.out.println("Skriv in kundens personnummer: "); sso - sc.nextInt(); Coint tefan 68 69 70 Terminal Build V Version Control TODO Problems Event Log 60:52 LF UTF-8 Tub Inneboende- Dokument kurs hyresko...-mall.pdf egna ant.LU-Java Cove NyBankAppJava Krjournal.xlsx Stefan Axelsson- pers.brev1 51 52 53 Uppgift1 .classpath .project 1. Uppgift1.im! > ulli External Libraries Scratches and Consoles 54 break; } hashSet.add(ssn); System.out.println("Skriv in kundens sc.nextLine(); String name = sc.nextLine(); Lisc.nextLine(); //Customer customer = new Customer(s 55 56 57 58 1. Structure 59 Problems: Current File 78 Project Errors 1 Uppgift1.java -/Desktop/eclipse-workspace1/Uppgift1/src/steaxe2 78 problems Cannot resolve symbol 'createCustomer':59 A Switch statement can be replaced with enhanced 'switch' :40 A continue' is unnecessary as the last statement in a loop :49 A Local variable 'hashSet' is redundant : 188 A Local variable 'hashSet' is redundant :192 A Explicit type argument Integer can be replaced with :192 A Commented out code (2 lines) :57 Typo: In word 'Uppgift' :14 Typo: In word 'Vlkommen! :21 Typo: In word 'Banken' :21 11 Yorsion Control TODO Problems Terminal Build Bookmarks

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

5. Have you any experience with agile software development?

Answered: 1 week ago