├── .metadata ├── .lock ├── .log ├── .mylyn │ └── repositories.xml.zip ├── .plugins │ ├── org.eclipse.core.resources │ │ ├── .root │ │ │ ├── .indexes │ │ │ │ ├── history.version │ │ │ │ ├── properties.index │ │ │ │ └── properties.version │ │ │ └── 1.tree │ │ └── .safetable │ │ │ └── org.eclipse.core.resources │ ├── org.eclipse.core.runtime │ │ └── .settings │ │ │ ├── org.eclipse.core.resources.prefs │ │ │ ├── org.eclipse.jdt.ui.prefs │ │ │ ├── org.eclipse.jsch.core.prefs │ │ │ ├── org.eclipse.jst.j2ee.webservice.ui.prefs │ │ │ ├── org.eclipse.m2e.discovery.prefs │ │ │ ├── org.eclipse.mylyn.context.core.prefs │ │ │ ├── org.eclipse.mylyn.monitor.ui.prefs │ │ │ ├── org.eclipse.mylyn.tasks.ui.prefs │ │ │ ├── org.eclipse.ui.ide.prefs │ │ │ ├── org.eclipse.ui.navigator.prefs │ │ │ ├── org.eclipse.ui.prefs │ │ │ ├── org.eclipse.ui.workbench.prefs │ │ │ └── org.eclipse.urischeme.prefs │ ├── org.eclipse.e4.workbench │ │ └── workbench.xmi │ ├── org.eclipse.jdt.core │ │ ├── assumedExternalFilesCache │ │ ├── externalFilesCache │ │ ├── nonChainingJarsCache │ │ └── variablesAndContainers.dat │ ├── org.eclipse.jdt.ui │ │ ├── OpenTypeHistory.xml │ │ └── QualifiedTypeNameHistory.xml │ ├── org.eclipse.m2e.logback.configuration │ │ ├── 0.log │ │ └── logback.1.16.0.20200318-1040.xml │ ├── org.eclipse.tips.ide │ │ └── dialog_settings.xml │ ├── org.eclipse.tm.terminal.view.ui │ │ └── .executables │ │ │ └── data.properties │ ├── org.eclipse.ui.intro │ │ └── introstate │ └── org.eclipse.ui.workbench │ │ └── workingsets.xml └── version.ini ├── FifthWeek ├── .gitignore ├── springBoot2.zip └── springBoot2 │ ├── .gitignore │ ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── kodlama │ │ │ └── io │ │ │ └── springBoot2 │ │ │ ├── SpringBoot2Application.java │ │ │ ├── business │ │ │ ├── abstracts │ │ │ │ └── BrandService.java │ │ │ ├── concretes │ │ │ │ └── BrandManager.java │ │ │ ├── requests │ │ │ │ └── CreateBrandRequest.java │ │ │ └── responses │ │ │ │ └── GetAllBrandsResponse.java │ │ │ ├── dataAccess │ │ │ └── abstracts │ │ │ │ └── BrandRepository.java │ │ │ ├── entities │ │ │ └── concretes │ │ │ │ └── Brand.java │ │ │ └── webApi │ │ │ └── controllers │ │ │ └── BrandsController.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── kodlama │ └── io │ └── springBoot2 │ └── SpringBoot2ApplicationTests.java ├── FourthWeek-Spring ├── .gitignore ├── Kodlama.io.Devs.zip ├── Kodlama.io.Devs │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── kodlama │ │ │ │ └── io │ │ │ │ └── Kodlama │ │ │ │ └── io │ │ │ │ └── Devs │ │ │ │ ├── Application.java │ │ │ │ ├── business │ │ │ │ ├── abstracts │ │ │ │ │ └── CourseService.java │ │ │ │ └── concretes │ │ │ │ │ └── CourseManager.java │ │ │ │ ├── dataAccess │ │ │ │ ├── abstracts │ │ │ │ │ └── CourseRepository.java │ │ │ │ └── concretes │ │ │ │ │ └── InMemoryCourseRepository.java │ │ │ │ ├── entities │ │ │ │ └── concretes │ │ │ │ │ └── Course.java │ │ │ │ └── webApi │ │ │ │ └── controllers │ │ │ │ └── CoursesController.java │ │ └── resources │ │ │ └── application.properties │ │ └── test │ │ └── java │ │ └── kodlama │ │ └── io │ │ └── Kodlama │ │ └── io │ │ └── Devs │ │ └── ApplicationTests.java ├── rentACar.zip └── rentACar │ ├── .gitignore │ ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom2.xml │ └── src │ ├── main │ ├── java │ │ └── kodlama │ │ │ └── io │ │ │ └── rentACar │ │ │ ├── RentACarApplication.java │ │ │ ├── business │ │ │ ├── abstracts │ │ │ │ └── BrandService.java │ │ │ └── concretes │ │ │ │ └── BrandManager.java │ │ │ ├── dataAccess │ │ │ ├── abstracts │ │ │ │ └── BrandRepository.java │ │ │ └── concretes │ │ │ │ └── InMemoryBrandRepository.java │ │ │ ├── entities │ │ │ └── concretes │ │ │ │ └── Brand.java │ │ │ └── webApi │ │ │ └── controllers │ │ │ └── BrandsController.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── kodlama │ └── io │ └── rentACar │ └── RentACarApplicationTests.java ├── SecondWeek └── oop1 │ ├── .classpath │ ├── .project │ ├── .settings │ └── org.eclipse.jdt.core.prefs │ ├── bin │ └── oop1 │ │ ├── CorporateCustomer.class │ │ ├── Customer.class │ │ ├── IndividualCustomer.class │ │ ├── Main.class │ │ └── Product.class │ └── src │ └── oop1 │ ├── CorporateCustomer.java │ ├── Customer.java │ ├── IndividualCustomer.java │ ├── Main.java │ └── Product.java └── ThirdWeek ├── .gitignore ├── .idea ├── .gitignore ├── ThirdWeek.iml ├── modules.xml └── vcs.xml ├── Java-Kamp-2022 - Kısayol.lnk ├── abstractClasses ├── .classpath ├── .gitignore ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs └── src │ └── abstractClasses │ ├── GameCalculator.java │ ├── KidsGameCalculator.java │ ├── Main.java │ ├── ManGameCalculator.java │ └── WomanGameCalculator.java ├── abstractDemo ├── .classpath ├── .gitignore ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs └── src │ └── abstractDemo │ ├── BaseDatabaseManager.java │ ├── CustomerManager.java │ ├── Main.java │ ├── OracleDatabaseManager.java │ └── SqlServerDatabaseManager.java ├── c#-oop ├── .vs │ └── oopUcuncuHaftaOdev │ │ ├── DesignTimeBuild │ │ └── .dtbcache.v2 │ │ └── v16 │ │ └── .suo ├── oopUcuncuHaftaOdev.sln └── oopUcuncuHaftaOdev │ ├── Program.cs │ ├── bin │ └── Debug │ │ └── netcoreapp3.1 │ │ ├── oopUcuncuHaftaOdev.deps.json │ │ ├── oopUcuncuHaftaOdev.dll │ │ ├── oopUcuncuHaftaOdev.exe │ │ ├── oopUcuncuHaftaOdev.pdb │ │ ├── oopUcuncuHaftaOdev.runtimeconfig.dev.json │ │ └── oopUcuncuHaftaOdev.runtimeconfig.json │ ├── obj │ ├── Debug │ │ └── netcoreapp3.1 │ │ │ ├── .NETCoreApp,Version=v3.1.AssemblyAttributes.cs │ │ │ ├── apphost.exe │ │ │ ├── oopUcuncuHaftaOdev.AssemblyInfo.cs │ │ │ ├── oopUcuncuHaftaOdev.AssemblyInfoInputs.cache │ │ │ ├── oopUcuncuHaftaOdev.assets.cache │ │ │ ├── oopUcuncuHaftaOdev.csproj.CoreCompileInputs.cache │ │ │ ├── oopUcuncuHaftaOdev.csproj.FileListAbsolute.txt │ │ │ ├── oopUcuncuHaftaOdev.csprojAssemblyReference.cache │ │ │ ├── oopUcuncuHaftaOdev.dll │ │ │ ├── oopUcuncuHaftaOdev.genruntimeconfig.cache │ │ │ └── oopUcuncuHaftaOdev.pdb │ ├── oopUcuncuHaftaOdev.csproj.nuget.dgspec.json │ ├── oopUcuncuHaftaOdev.csproj.nuget.g.props │ ├── oopUcuncuHaftaOdev.csproj.nuget.g.targets │ ├── project.assets.json │ └── project.nuget.cache │ └── oopUcuncuHaftaOdev.csproj ├── interfaceDemo ├── .classpath ├── .gitignore ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs └── src │ └── interfaceDemo │ ├── IEatable.java │ ├── IPayable.java │ ├── IWorkable.java │ ├── Main.java │ ├── OutsourceWorker.java │ ├── Robot.java │ └── Worker.java ├── interfaces ├── .classpath ├── .gitignore ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs └── src │ └── interfaces │ ├── CustomerManager.java │ ├── ICustomerDal.java │ ├── Main.java │ ├── MySqlCustomerDal.java │ └── OracleCustomerDal.java ├── kodlamaioDemo ├── .classpath ├── .gitignore ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs └── src │ └── kodlamaioDemo │ ├── Main.java │ ├── business │ ├── CourseManager.java │ └── CourseValidator.java │ ├── dataAccess │ ├── HibernateProductDao.java │ ├── JdbcProductDao.java │ └── ProductDao.java │ ├── entities │ └── Course.java │ └── logging │ ├── DatabaseLogger.java │ ├── Logger.java │ └── MailLogger.java ├── oopWithNLayeredApp ├── .classpath ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs ├── bin │ └── oopWithNLayeredApp │ │ ├── Main.class │ │ ├── business │ │ └── ProductManager.class │ │ ├── core │ │ └── logging │ │ │ ├── DatabaseLogger.class │ │ │ ├── FileLogger.class │ │ │ ├── Logger.class │ │ │ └── MailLogger.class │ │ ├── dataAccess │ │ ├── HibernateProductDao.class │ │ ├── JdbcProductDao.class │ │ └── ProductDao.class │ │ └── entities │ │ └── Product.class └── src │ └── oopWithNLayeredApp │ ├── Main.java │ ├── business │ └── ProductManager.java │ ├── core │ └── logging │ │ ├── DatabaseLogger.java │ │ ├── FileLogger.java │ │ ├── Logger.java │ │ └── MailLogger.java │ ├── dataAccess │ ├── HibernateProductDao.java │ ├── JdbcProductDao.java │ └── ProductDao.java │ └── entities │ └── Product.java ├── overriding ├── .classpath ├── .gitignore ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs └── src │ └── overriding │ ├── BaseKrediManager.java │ ├── Main.java │ ├── OgrenciKrediManager.java │ ├── OgretmenKrediManager.java │ └── TarımKrediManager.java ├── sql-example-6.hw.xlsx ├── sql-temel.xlsx └── staticDemo ├── .classpath ├── .gitignore ├── .project ├── .settings └── org.eclipse.jdt.core.prefs └── src └── staticDemo ├── Main.java ├── Product.java ├── ProductManager.java └── ProductValidator.java /.metadata/.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/.metadata/.lock -------------------------------------------------------------------------------- /.metadata/.log: -------------------------------------------------------------------------------- 1 | !SESSION 2022-10-11 22:40:46.750 ----------------------------------------------- 2 | eclipse.buildId=4.19.0.I20210303-1800 3 | java.version=15.0.2 4 | java.vendor=Oracle Corporation 5 | BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=tr_TR 6 | Framework arguments: -product org.eclipse.epp.package.jee.product 7 | Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product 8 | 9 | !ENTRY org.eclipse.jface 2 0 2022-10-11 22:41:25.618 10 | !MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation. 11 | !SUBENTRY 1 org.eclipse.jface 2 0 2022-10-11 22:41:25.618 12 | !MESSAGE A conflict occurred for CTRL+SHIFT+T: 13 | Binding(CTRL+SHIFT+T, 14 | ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type, 15 | Open a type in a Java editor, 16 | Category(org.eclipse.ui.category.navigate,Navigate,null,true), 17 | org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@70ebaa1e, 18 | ,,true),null), 19 | org.eclipse.ui.defaultAcceleratorConfiguration, 20 | org.eclipse.ui.contexts.window,,,system) 21 | Binding(CTRL+SHIFT+T, 22 | ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace, 23 | , 24 | Category(org.eclipse.lsp4e.category,Language Servers,null,true), 25 | org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@3d5e3f58, 26 | ,,true),null), 27 | org.eclipse.ui.defaultAcceleratorConfiguration, 28 | org.eclipse.ui.contexts.window,,,system) 29 | 30 | !ENTRY org.eclipse.ui.navigator 2 0 2022-10-11 22:41:42.234 31 | !MESSAGE Can't find Navigator Content Descriptor with id: org.eclipse.jst.servlet.ui.EnhancedJavaRendering 32 | 33 | !ENTRY org.eclipse.ui.navigator 2 0 2022-10-11 22:41:42.235 34 | !MESSAGE Can't find Navigator Content Descriptor with id: org.eclipse.jst.servlet.ui.EnhancedJavaRendering 35 | 36 | !ENTRY org.eclipse.egit.ui 2 0 2022-10-11 22:41:42.340 37 | !MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git 38 | user global configuration and to define the default location to store repositories: 'C:\Users\User'. If this is 39 | not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and 40 | EGit might behave differently since they see different configuration options. 41 | This warning can be switched off on the Team > Git > Confirmations and Warnings preference page. 42 | 43 | !ENTRY org.eclipse.ui.ide 4 4 2022-10-11 22:41:50.523 44 | !MESSAGE Not properly disposed SWT resource 45 | !STACK 0 46 | java.lang.Error: SWT Resource was not properly disposed 47 | at org.eclipse.swt.graphics.Resource.initNonDisposeTracking(Resource.java:172) 48 | at org.eclipse.swt.graphics.Resource.(Resource.java:120) 49 | at org.eclipse.swt.graphics.Image.(Image.java:165) 50 | at org.eclipse.swt.graphics.Image.win32_new(Image.java:2163) 51 | at org.eclipse.swt.widgets.TaskBar.createShellLink(TaskBar.java:168) 52 | at org.eclipse.swt.widgets.TaskBar.createShellLinkArray(TaskBar.java:208) 53 | at org.eclipse.swt.widgets.TaskBar.setMenu(TaskBar.java:382) 54 | at org.eclipse.swt.widgets.TaskItem.setMenu(TaskItem.java:255) 55 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 56 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) 57 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 58 | at java.base/java.lang.reflect.Method.invoke(Method.java:564) 59 | at org.eclipse.mylyn.commons.workbench.TaskBarManager$TaskBarMenuManager.setMenuOnTaskItem(TaskBarManager.java:121) 60 | at org.eclipse.mylyn.commons.workbench.TaskBarManager$TaskBarMenuManager.update(TaskBarManager.java:112) 61 | at org.eclipse.jface.action.MenuManager.update(MenuManager.java:673) 62 | at org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin.addSystemTaskBarActions(TasksUiPlugin.java:479) 63 | at org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin.access$7(TasksUiPlugin.java:458) 64 | at org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin$TasksUiInitializationJob.runInUIThread(TasksUiPlugin.java:394) 65 | at org.eclipse.ui.progress.UIJob.lambda$0(UIJob.java:95) 66 | at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40) 67 | at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185) 68 | at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4001) 69 | at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3629) 70 | at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1157) 71 | at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338) 72 | at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046) 73 | at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155) 74 | at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644) 75 | at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338) 76 | at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551) 77 | at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156) 78 | at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152) 79 | at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203) 80 | at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) 81 | at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) 82 | at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401) 83 | at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255) 84 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 85 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) 86 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 87 | at java.base/java.lang.reflect.Method.invoke(Method.java:564) 88 | at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653) 89 | at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590) 90 | at org.eclipse.equinox.launcher.Main.run(Main.java:1461) 91 | 92 | !ENTRY org.eclipse.ui.ide 4 4 2022-10-11 22:41:50.526 93 | !MESSAGE Not properly disposed SWT resource 94 | !STACK 0 95 | java.lang.Error: SWT Resource was not properly disposed 96 | at org.eclipse.swt.graphics.Resource.initNonDisposeTracking(Resource.java:172) 97 | at org.eclipse.swt.graphics.Resource.(Resource.java:120) 98 | at org.eclipse.swt.graphics.Image.(Image.java:165) 99 | at org.eclipse.swt.graphics.Image.win32_new(Image.java:2163) 100 | at org.eclipse.swt.widgets.TaskBar.createShellLink(TaskBar.java:168) 101 | at org.eclipse.swt.widgets.TaskBar.createShellLinkArray(TaskBar.java:208) 102 | at org.eclipse.swt.widgets.TaskBar.setMenu(TaskBar.java:382) 103 | at org.eclipse.swt.widgets.TaskItem.setMenu(TaskItem.java:255) 104 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 105 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) 106 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 107 | at java.base/java.lang.reflect.Method.invoke(Method.java:564) 108 | at org.eclipse.mylyn.commons.workbench.TaskBarManager$TaskBarMenuManager.setMenuOnTaskItem(TaskBarManager.java:121) 109 | at org.eclipse.mylyn.commons.workbench.TaskBarManager$TaskBarMenuManager.update(TaskBarManager.java:112) 110 | at org.eclipse.jface.action.MenuManager.update(MenuManager.java:673) 111 | at org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin.addSystemTaskBarActions(TasksUiPlugin.java:479) 112 | at org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin.access$7(TasksUiPlugin.java:458) 113 | at org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin$TasksUiInitializationJob.runInUIThread(TasksUiPlugin.java:394) 114 | at org.eclipse.ui.progress.UIJob.lambda$0(UIJob.java:95) 115 | at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40) 116 | at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185) 117 | at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4001) 118 | at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3629) 119 | at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1157) 120 | at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338) 121 | at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046) 122 | at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155) 123 | at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644) 124 | at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338) 125 | at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551) 126 | at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156) 127 | at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152) 128 | at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203) 129 | at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) 130 | at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) 131 | at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401) 132 | at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255) 133 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 134 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) 135 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 136 | at java.base/java.lang.reflect.Method.invoke(Method.java:564) 137 | at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653) 138 | at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590) 139 | at org.eclipse.equinox.launcher.Main.run(Main.java:1461) 140 | -------------------------------------------------------------------------------- /.metadata/.mylyn/repositories.xml.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/.metadata/.mylyn/repositories.xml.zip -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index: -------------------------------------------------------------------------------- 1 | /org.eclipse.jdt.corestateVersionNumber36 -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.root/1.tree: -------------------------------------------------------------------------------- 1 | org.eclipse.jdt.core -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | version=1 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs: -------------------------------------------------------------------------------- 1 | content_assist_proposals_background=255,255,255 2 | content_assist_proposals_foreground=0,0,0 3 | eclipse.preferences.version=1 4 | org.eclipse.jdt.internal.ui.navigator.layout=2 5 | org.eclipse.jdt.internal.ui.navigator.librariesnode=true 6 | org.eclipse.jdt.ui.formatterprofiles.version=21 7 | spelling_locale_initialized=true 8 | useAnnotationsPrefPage=true 9 | useQuickDiffPrefPage=true 10 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jsch.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jsch.core.hasChangedDefaultWin32SshHome=true 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jst.j2ee.webservice.ui.prefs: -------------------------------------------------------------------------------- 1 | areThereWebServices=false 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.discovery.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.m2e.discovery.pref.projects= 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.context.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | mylyn.attention.migrated=true 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.monitor.ui.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.mylyn.monitor.activity.tracking.enabled.checked=true 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.tasks.ui.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | migrated.task.repositories.secure.store=true 3 | org.eclipse.mylyn.tasks.ui.filters.nonmatching=true 4 | org.eclipse.mylyn.tasks.ui.filters.nonmatching.encouraged=true 5 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | platformState=1620253118214 3 | quickStart=false 4 | tipsAndTricks=true 5 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.navigator.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.ui.navigator.ProjectExplorer.filterActivation=\:org.eclipse.jdt.java.ui.filters.HidePackageDeclaration\:org.eclipse.jdt.java.ui.filters.HideOutputFolder\:org.eclipse.buildship.ui.navigator.filter.gradle.subProject\:org.eclipse.ui.navigator.resources.nested.HideTopLevelProjectIfNested\:org.eclipse.buildship.ui.navigator.filter.gradle.buildfolder\:org.eclipse.jdt.java.ui.filters.HideEmptyInnerPackages\:org.eclipse.jst.j2ee.navigator.ui.filters.jetemitters\:org.eclipse.jdt.java.ui.filters.HideInnerClassFiles\:org.eclipse.ui.navigator.resources.filters.startsWithDot\:org.eclipse.jdt.java.ui.filters.HideEmptyLibraryContainers\:org.eclipse.jdt.java.ui.filters.HideImportDeclaration\:org.eclipse.jdt.java.ui.filters.HideSyntheticMembers\:org.eclipse.mylyn.tasks.ui.navigator.filters.tasks\:org.eclipse.ui.navigator.resources.nested.HideFolderWhenProjectIsShownAsNested\: 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | showIntro=false 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs: -------------------------------------------------------------------------------- 1 | //org.eclipse.ui.commands/state/org.eclipse.ui.navigator.resources.nested.changeProjectPresentation/org.eclipse.ui.commands.radioState=false 2 | //org.eclipse.ui.commands/state/org.eclipse.wst.xml.views.XPathView.processor.xpathprocessor/org.eclipse.ui.commands.radioState=xpath10 3 | PLUGINS_NOT_ACTIVATED_ON_STARTUP=;org.eclipse.m2e.discovery; 4 | eclipse.preferences.version=1 5 | org.eclipse.ui.workbench.ACTIVE_NOFOCUS_TAB_BG_END=255,255,255 6 | org.eclipse.ui.workbench.ACTIVE_NOFOCUS_TAB_BG_START=255,255,255 7 | org.eclipse.ui.workbench.ACTIVE_NOFOCUS_TAB_TEXT_COLOR=16,16,16 8 | org.eclipse.ui.workbench.ACTIVE_TAB_BG_END=255,255,255 9 | org.eclipse.ui.workbench.ACTIVE_TAB_BG_START=255,255,255 10 | org.eclipse.ui.workbench.INACTIVE_TAB_BG_START=242,242,242 11 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.urischeme.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | processedSchemes=,eclipse+command,eclipse+mpc 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.jdt.core/assumedExternalFilesCache: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.jdt.core/externalFilesCache: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat: -------------------------------------------------------------------------------- 1 | JRE_LIBJRE_SRC JRE_SRCROOT 2 | JUNIT_HOME ECLIPSE_HOMEJUNIT_SRC_HOMEM2_REPO -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log: -------------------------------------------------------------------------------- 1 | 2022-10-11 22:41:42,424 [Worker-3: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is out-of-date. Trying to update. 2 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.16.0.20200318-1040.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | %date [%thread] %-5level %logger{35} - %msg%n 5 | 6 | 7 | OFF 8 | 9 | 10 | 11 | 12 | ${org.eclipse.m2e.log.dir}/0.log 13 | 14 | ${org.eclipse.m2e.log.dir}/%i.log 15 | 1 16 | 10 17 | 18 | 19 | 100MB 20 | 21 | 22 | %date [%thread] %-5level %logger{35} - %msg%n 23 | 24 | 25 | 26 | 27 | 28 | WARN 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.tips.ide/dialog_settings.xml: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.tm.terminal.view.ui/.executables/data.properties: -------------------------------------------------------------------------------- 1 | #Tue Oct 11 22:41:21 TRT 2022 2 | 0.Icon=C\:\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico 3 | 0.Path=C\:\\Program Files\\Git\\bin\\sh.exe 4 | 0.Translate=true 5 | 0.Args=--login -i 6 | 0.Name=Git Bash 7 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.ui.intro/introstate: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.metadata/version.ini: -------------------------------------------------------------------------------- 1 | #Tue Oct 11 22:41:16 TRT 2022 2 | org.eclipse.core.runtime=2 3 | org.eclipse.platform=4.19.0.v20210303-1800 4 | -------------------------------------------------------------------------------- /FifthWeek/.gitignore: -------------------------------------------------------------------------------- 1 | /.metadata/ 2 | -------------------------------------------------------------------------------- /FifthWeek/springBoot2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/FifthWeek/springBoot2.zip -------------------------------------------------------------------------------- /FifthWeek/springBoot2/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /FifthWeek/springBoot2/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/FifthWeek/springBoot2/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /FifthWeek/springBoot2/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.6/apache-maven-3.8.6-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar 3 | -------------------------------------------------------------------------------- /FifthWeek/springBoot2/mvnw: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # ---------------------------------------------------------------------------- 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # https://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # ---------------------------------------------------------------------------- 20 | 21 | # ---------------------------------------------------------------------------- 22 | # Maven Start Up Batch script 23 | # 24 | # Required ENV vars: 25 | # ------------------ 26 | # JAVA_HOME - location of a JDK home dir 27 | # 28 | # Optional ENV vars 29 | # ----------------- 30 | # M2_HOME - location of maven2's installed home dir 31 | # MAVEN_OPTS - parameters passed to the Java VM when running Maven 32 | # e.g. to debug Maven itself, use 33 | # set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 34 | # MAVEN_SKIP_RC - flag to disable loading of mavenrc files 35 | # ---------------------------------------------------------------------------- 36 | 37 | if [ -z "$MAVEN_SKIP_RC" ] ; then 38 | 39 | if [ -f /usr/local/etc/mavenrc ] ; then 40 | . /usr/local/etc/mavenrc 41 | fi 42 | 43 | if [ -f /etc/mavenrc ] ; then 44 | . /etc/mavenrc 45 | fi 46 | 47 | if [ -f "$HOME/.mavenrc" ] ; then 48 | . "$HOME/.mavenrc" 49 | fi 50 | 51 | fi 52 | 53 | # OS specific support. $var _must_ be set to either true or false. 54 | cygwin=false; 55 | darwin=false; 56 | mingw=false 57 | case "`uname`" in 58 | CYGWIN*) cygwin=true ;; 59 | MINGW*) mingw=true;; 60 | Darwin*) darwin=true 61 | # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home 62 | # See https://developer.apple.com/library/mac/qa/qa1170/_index.html 63 | if [ -z "$JAVA_HOME" ]; then 64 | if [ -x "/usr/libexec/java_home" ]; then 65 | export JAVA_HOME="`/usr/libexec/java_home`" 66 | else 67 | export JAVA_HOME="/Library/Java/Home" 68 | fi 69 | fi 70 | ;; 71 | esac 72 | 73 | if [ -z "$JAVA_HOME" ] ; then 74 | if [ -r /etc/gentoo-release ] ; then 75 | JAVA_HOME=`java-config --jre-home` 76 | fi 77 | fi 78 | 79 | if [ -z "$M2_HOME" ] ; then 80 | ## resolve links - $0 may be a link to maven's home 81 | PRG="$0" 82 | 83 | # need this for relative symlinks 84 | while [ -h "$PRG" ] ; do 85 | ls=`ls -ld "$PRG"` 86 | link=`expr "$ls" : '.*-> \(.*\)$'` 87 | if expr "$link" : '/.*' > /dev/null; then 88 | PRG="$link" 89 | else 90 | PRG="`dirname "$PRG"`/$link" 91 | fi 92 | done 93 | 94 | saveddir=`pwd` 95 | 96 | M2_HOME=`dirname "$PRG"`/.. 97 | 98 | # make it fully qualified 99 | M2_HOME=`cd "$M2_HOME" && pwd` 100 | 101 | cd "$saveddir" 102 | # echo Using m2 at $M2_HOME 103 | fi 104 | 105 | # For Cygwin, ensure paths are in UNIX format before anything is touched 106 | if $cygwin ; then 107 | [ -n "$M2_HOME" ] && 108 | M2_HOME=`cygpath --unix "$M2_HOME"` 109 | [ -n "$JAVA_HOME" ] && 110 | JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 111 | [ -n "$CLASSPATH" ] && 112 | CLASSPATH=`cygpath --path --unix "$CLASSPATH"` 113 | fi 114 | 115 | # For Mingw, ensure paths are in UNIX format before anything is touched 116 | if $mingw ; then 117 | [ -n "$M2_HOME" ] && 118 | M2_HOME="`(cd "$M2_HOME"; pwd)`" 119 | [ -n "$JAVA_HOME" ] && 120 | JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" 121 | fi 122 | 123 | if [ -z "$JAVA_HOME" ]; then 124 | javaExecutable="`which javac`" 125 | if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then 126 | # readlink(1) is not available as standard on Solaris 10. 127 | readLink=`which readlink` 128 | if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then 129 | if $darwin ; then 130 | javaHome="`dirname \"$javaExecutable\"`" 131 | javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" 132 | else 133 | javaExecutable="`readlink -f \"$javaExecutable\"`" 134 | fi 135 | javaHome="`dirname \"$javaExecutable\"`" 136 | javaHome=`expr "$javaHome" : '\(.*\)/bin'` 137 | JAVA_HOME="$javaHome" 138 | export JAVA_HOME 139 | fi 140 | fi 141 | fi 142 | 143 | if [ -z "$JAVACMD" ] ; then 144 | if [ -n "$JAVA_HOME" ] ; then 145 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 146 | # IBM's JDK on AIX uses strange locations for the executables 147 | JAVACMD="$JAVA_HOME/jre/sh/java" 148 | else 149 | JAVACMD="$JAVA_HOME/bin/java" 150 | fi 151 | else 152 | JAVACMD="`\\unset -f command; \\command -v java`" 153 | fi 154 | fi 155 | 156 | if [ ! -x "$JAVACMD" ] ; then 157 | echo "Error: JAVA_HOME is not defined correctly." >&2 158 | echo " We cannot execute $JAVACMD" >&2 159 | exit 1 160 | fi 161 | 162 | if [ -z "$JAVA_HOME" ] ; then 163 | echo "Warning: JAVA_HOME environment variable is not set." 164 | fi 165 | 166 | CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher 167 | 168 | # traverses directory structure from process work directory to filesystem root 169 | # first directory with .mvn subdirectory is considered project base directory 170 | find_maven_basedir() { 171 | 172 | if [ -z "$1" ] 173 | then 174 | echo "Path not specified to find_maven_basedir" 175 | return 1 176 | fi 177 | 178 | basedir="$1" 179 | wdir="$1" 180 | while [ "$wdir" != '/' ] ; do 181 | if [ -d "$wdir"/.mvn ] ; then 182 | basedir=$wdir 183 | break 184 | fi 185 | # workaround for JBEAP-8937 (on Solaris 10/Sparc) 186 | if [ -d "${wdir}" ]; then 187 | wdir=`cd "$wdir/.."; pwd` 188 | fi 189 | # end of workaround 190 | done 191 | echo "${basedir}" 192 | } 193 | 194 | # concatenates all lines of a file 195 | concat_lines() { 196 | if [ -f "$1" ]; then 197 | echo "$(tr -s '\n' ' ' < "$1")" 198 | fi 199 | } 200 | 201 | BASE_DIR=`find_maven_basedir "$(pwd)"` 202 | if [ -z "$BASE_DIR" ]; then 203 | exit 1; 204 | fi 205 | 206 | ########################################################################################## 207 | # Extension to allow automatically downloading the maven-wrapper.jar from Maven-central 208 | # This allows using the maven wrapper in projects that prohibit checking in binary data. 209 | ########################################################################################## 210 | if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then 211 | if [ "$MVNW_VERBOSE" = true ]; then 212 | echo "Found .mvn/wrapper/maven-wrapper.jar" 213 | fi 214 | else 215 | if [ "$MVNW_VERBOSE" = true ]; then 216 | echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." 217 | fi 218 | if [ -n "$MVNW_REPOURL" ]; then 219 | jarUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" 220 | else 221 | jarUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" 222 | fi 223 | while IFS="=" read key value; do 224 | case "$key" in (wrapperUrl) jarUrl="$value"; break ;; 225 | esac 226 | done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" 227 | if [ "$MVNW_VERBOSE" = true ]; then 228 | echo "Downloading from: $jarUrl" 229 | fi 230 | wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" 231 | if $cygwin; then 232 | wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` 233 | fi 234 | 235 | if command -v wget > /dev/null; then 236 | if [ "$MVNW_VERBOSE" = true ]; then 237 | echo "Found wget ... using wget" 238 | fi 239 | if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then 240 | wget "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" 241 | else 242 | wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" 243 | fi 244 | elif command -v curl > /dev/null; then 245 | if [ "$MVNW_VERBOSE" = true ]; then 246 | echo "Found curl ... using curl" 247 | fi 248 | if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then 249 | curl -o "$wrapperJarPath" "$jarUrl" -f 250 | else 251 | curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f 252 | fi 253 | 254 | else 255 | if [ "$MVNW_VERBOSE" = true ]; then 256 | echo "Falling back to using Java to download" 257 | fi 258 | javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" 259 | # For Cygwin, switch paths to Windows format before running javac 260 | if $cygwin; then 261 | javaClass=`cygpath --path --windows "$javaClass"` 262 | fi 263 | if [ -e "$javaClass" ]; then 264 | if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then 265 | if [ "$MVNW_VERBOSE" = true ]; then 266 | echo " - Compiling MavenWrapperDownloader.java ..." 267 | fi 268 | # Compiling the Java class 269 | ("$JAVA_HOME/bin/javac" "$javaClass") 270 | fi 271 | if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then 272 | # Running the downloader 273 | if [ "$MVNW_VERBOSE" = true ]; then 274 | echo " - Running MavenWrapperDownloader.java ..." 275 | fi 276 | ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") 277 | fi 278 | fi 279 | fi 280 | fi 281 | ########################################################################################## 282 | # End of extension 283 | ########################################################################################## 284 | 285 | export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} 286 | if [ "$MVNW_VERBOSE" = true ]; then 287 | echo $MAVEN_PROJECTBASEDIR 288 | fi 289 | MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" 290 | 291 | # For Cygwin, switch paths to Windows format before running java 292 | if $cygwin; then 293 | [ -n "$M2_HOME" ] && 294 | M2_HOME=`cygpath --path --windows "$M2_HOME"` 295 | [ -n "$JAVA_HOME" ] && 296 | JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` 297 | [ -n "$CLASSPATH" ] && 298 | CLASSPATH=`cygpath --path --windows "$CLASSPATH"` 299 | [ -n "$MAVEN_PROJECTBASEDIR" ] && 300 | MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` 301 | fi 302 | 303 | # Provide a "standardized" way to retrieve the CLI args that will 304 | # work with both Windows and non-Windows executions. 305 | MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" 306 | export MAVEN_CMD_LINE_ARGS 307 | 308 | WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain 309 | 310 | exec "$JAVACMD" \ 311 | $MAVEN_OPTS \ 312 | $MAVEN_DEBUG_OPTS \ 313 | -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ 314 | "-Dmaven.home=${M2_HOME}" \ 315 | "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ 316 | ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" 317 | -------------------------------------------------------------------------------- /FifthWeek/springBoot2/mvnw.cmd: -------------------------------------------------------------------------------- 1 | @REM ---------------------------------------------------------------------------- 2 | @REM Licensed to the Apache Software Foundation (ASF) under one 3 | @REM or more contributor license agreements. See the NOTICE file 4 | @REM distributed with this work for additional information 5 | @REM regarding copyright ownership. The ASF licenses this file 6 | @REM to you under the Apache License, Version 2.0 (the 7 | @REM "License"); you may not use this file except in compliance 8 | @REM with the License. You may obtain a copy of the License at 9 | @REM 10 | @REM https://www.apache.org/licenses/LICENSE-2.0 11 | @REM 12 | @REM Unless required by applicable law or agreed to in writing, 13 | @REM software distributed under the License is distributed on an 14 | @REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | @REM KIND, either express or implied. See the License for the 16 | @REM specific language governing permissions and limitations 17 | @REM under the License. 18 | @REM ---------------------------------------------------------------------------- 19 | 20 | @REM ---------------------------------------------------------------------------- 21 | @REM Maven Start Up Batch script 22 | @REM 23 | @REM Required ENV vars: 24 | @REM JAVA_HOME - location of a JDK home dir 25 | @REM 26 | @REM Optional ENV vars 27 | @REM M2_HOME - location of maven2's installed home dir 28 | @REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands 29 | @REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending 30 | @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven 31 | @REM e.g. to debug Maven itself, use 32 | @REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 33 | @REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files 34 | @REM ---------------------------------------------------------------------------- 35 | 36 | @REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' 37 | @echo off 38 | @REM set title of command window 39 | title %0 40 | @REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' 41 | @if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% 42 | 43 | @REM set %HOME% to equivalent of $HOME 44 | if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") 45 | 46 | @REM Execute a user defined script before this one 47 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre 48 | @REM check for pre script, once with legacy .bat ending and once with .cmd ending 49 | if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %* 50 | if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %* 51 | :skipRcPre 52 | 53 | @setlocal 54 | 55 | set ERROR_CODE=0 56 | 57 | @REM To isolate internal variables from possible post scripts, we use another setlocal 58 | @setlocal 59 | 60 | @REM ==== START VALIDATION ==== 61 | if not "%JAVA_HOME%" == "" goto OkJHome 62 | 63 | echo. 64 | echo Error: JAVA_HOME not found in your environment. >&2 65 | echo Please set the JAVA_HOME variable in your environment to match the >&2 66 | echo location of your Java installation. >&2 67 | echo. 68 | goto error 69 | 70 | :OkJHome 71 | if exist "%JAVA_HOME%\bin\java.exe" goto init 72 | 73 | echo. 74 | echo Error: JAVA_HOME is set to an invalid directory. >&2 75 | echo JAVA_HOME = "%JAVA_HOME%" >&2 76 | echo Please set the JAVA_HOME variable in your environment to match the >&2 77 | echo location of your Java installation. >&2 78 | echo. 79 | goto error 80 | 81 | @REM ==== END VALIDATION ==== 82 | 83 | :init 84 | 85 | @REM Find the project base dir, i.e. the directory that contains the folder ".mvn". 86 | @REM Fallback to current working directory if not found. 87 | 88 | set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% 89 | IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir 90 | 91 | set EXEC_DIR=%CD% 92 | set WDIR=%EXEC_DIR% 93 | :findBaseDir 94 | IF EXIST "%WDIR%"\.mvn goto baseDirFound 95 | cd .. 96 | IF "%WDIR%"=="%CD%" goto baseDirNotFound 97 | set WDIR=%CD% 98 | goto findBaseDir 99 | 100 | :baseDirFound 101 | set MAVEN_PROJECTBASEDIR=%WDIR% 102 | cd "%EXEC_DIR%" 103 | goto endDetectBaseDir 104 | 105 | :baseDirNotFound 106 | set MAVEN_PROJECTBASEDIR=%EXEC_DIR% 107 | cd "%EXEC_DIR%" 108 | 109 | :endDetectBaseDir 110 | 111 | IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig 112 | 113 | @setlocal EnableExtensions EnableDelayedExpansion 114 | for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a 115 | @endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% 116 | 117 | :endReadAdditionalConfig 118 | 119 | SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" 120 | set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" 121 | set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain 122 | 123 | set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" 124 | 125 | FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( 126 | IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B 127 | ) 128 | 129 | @REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central 130 | @REM This allows using the maven wrapper in projects that prohibit checking in binary data. 131 | if exist %WRAPPER_JAR% ( 132 | if "%MVNW_VERBOSE%" == "true" ( 133 | echo Found %WRAPPER_JAR% 134 | ) 135 | ) else ( 136 | if not "%MVNW_REPOURL%" == "" ( 137 | SET DOWNLOAD_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" 138 | ) 139 | if "%MVNW_VERBOSE%" == "true" ( 140 | echo Couldn't find %WRAPPER_JAR%, downloading it ... 141 | echo Downloading from: %DOWNLOAD_URL% 142 | ) 143 | 144 | powershell -Command "&{"^ 145 | "$webclient = new-object System.Net.WebClient;"^ 146 | "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ 147 | "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ 148 | "}"^ 149 | "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ 150 | "}" 151 | if "%MVNW_VERBOSE%" == "true" ( 152 | echo Finished downloading %WRAPPER_JAR% 153 | ) 154 | ) 155 | @REM End of extension 156 | 157 | @REM Provide a "standardized" way to retrieve the CLI args that will 158 | @REM work with both Windows and non-Windows executions. 159 | set MAVEN_CMD_LINE_ARGS=%* 160 | 161 | %MAVEN_JAVA_EXE% ^ 162 | %JVM_CONFIG_MAVEN_PROPS% ^ 163 | %MAVEN_OPTS% ^ 164 | %MAVEN_DEBUG_OPTS% ^ 165 | -classpath %WRAPPER_JAR% ^ 166 | "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^ 167 | %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* 168 | if ERRORLEVEL 1 goto error 169 | goto end 170 | 171 | :error 172 | set ERROR_CODE=1 173 | 174 | :end 175 | @endlocal & set ERROR_CODE=%ERROR_CODE% 176 | 177 | if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost 178 | @REM check for post script, once with legacy .bat ending and once with .cmd ending 179 | if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat" 180 | if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd" 181 | :skipRcPost 182 | 183 | @REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' 184 | if "%MAVEN_BATCH_PAUSE%"=="on" pause 185 | 186 | if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE% 187 | 188 | cmd /C exit /B %ERROR_CODE% 189 | -------------------------------------------------------------------------------- /FifthWeek/springBoot2/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.springframework.boot 7 | spring-boot-starter-parent 8 | 2.7.5 9 | 10 | 11 | kodlama.io 12 | springBoot2 13 | 0.0.1-SNAPSHOT 14 | springBoot2 15 | Spring Boot 2 16 | 17 | 11 18 | 19 | 20 | 21 | org.springframework.boot 22 | spring-boot-starter-data-jpa 23 | 24 | 25 | org.springframework.boot 26 | spring-boot-starter-validation 27 | 28 | 29 | org.springframework.boot 30 | spring-boot-starter-web 31 | 32 | 33 | 34 | org.springframework.boot 35 | spring-boot-devtools 36 | runtime 37 | true 38 | 39 | 40 | org.postgresql 41 | postgresql 42 | runtime 43 | 44 | 45 | org.projectlombok 46 | lombok 47 | true 48 | 49 | 50 | org.springframework.boot 51 | spring-boot-starter-test 52 | test 53 | 54 | 55 | org.springdoc 56 | springdoc-openapi-ui 57 | 1.6.6 58 | 59 | 60 | 61 | 62 | 63 | 64 | org.springframework.boot 65 | spring-boot-maven-plugin 66 | 67 | 68 | 69 | org.projectlombok 70 | lombok 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /FifthWeek/springBoot2/src/main/java/kodlama/io/springBoot2/SpringBoot2Application.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.springBoot2; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringBoot2Application { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringBoot2Application.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /FifthWeek/springBoot2/src/main/java/kodlama/io/springBoot2/business/abstracts/BrandService.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.springBoot2.business.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import kodlama.io.springBoot2.business.requests.CreateBrandRequest; 6 | import kodlama.io.springBoot2.business.responses.GetAllBrandsResponse; 7 | 8 | public interface BrandService { 9 | 10 | List getAll(); 11 | void add(CreateBrandRequest createBrandRequest); 12 | } -------------------------------------------------------------------------------- /FifthWeek/springBoot2/src/main/java/kodlama/io/springBoot2/business/concretes/BrandManager.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.springBoot2.business.concretes; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | import kodlama.io.springBoot2.business.abstracts.BrandService; 10 | import kodlama.io.springBoot2.business.requests.CreateBrandRequest; 11 | import kodlama.io.springBoot2.business.responses.GetAllBrandsResponse; 12 | import kodlama.io.springBoot2.dataAccess.abstracts.BrandRepository; 13 | import kodlama.io.springBoot2.entities.concretes.Brand; 14 | 15 | @Service //Bu sınıf bir business nesnesidir 16 | public class BrandManager implements BrandService{ 17 | 18 | private BrandRepository brandRepository; 19 | 20 | @Autowired 21 | public BrandManager(BrandRepository brandRepository) { 22 | super(); 23 | this.brandRepository = brandRepository; 24 | } 25 | 26 | @Override 27 | public List getAll() { 28 | 29 | List brands =brandRepository.findAll(); 30 | List brandsResponse = new ArrayList(); 31 | 32 | for (Brand brand : brands) { 33 | GetAllBrandsResponse responseItem = new GetAllBrandsResponse(); 34 | responseItem.setId(brand.getId()); 35 | responseItem.setName(brand.getName()); 36 | 37 | brandsResponse.add(responseItem); 38 | } 39 | // is kurallari 40 | return brandsResponse; 41 | } 42 | 43 | @Override 44 | public void add(CreateBrandRequest createBrandRequest) { 45 | Brand brand= new Brand(); 46 | brand.setName(createBrandRequest.getName()); 47 | this.brandRepository.save(brand); 48 | } 49 | } -------------------------------------------------------------------------------- /FifthWeek/springBoot2/src/main/java/kodlama/io/springBoot2/business/requests/CreateBrandRequest.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.springBoot2.business.requests; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | @Data 8 | @AllArgsConstructor 9 | @NoArgsConstructor 10 | public class CreateBrandRequest { 11 | 12 | private String name; 13 | } 14 | -------------------------------------------------------------------------------- /FifthWeek/springBoot2/src/main/java/kodlama/io/springBoot2/business/responses/GetAllBrandsResponse.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.springBoot2.business.responses; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | @Data 8 | @AllArgsConstructor 9 | @NoArgsConstructor 10 | public class GetAllBrandsResponse { 11 | 12 | private int id; 13 | private String name; 14 | } 15 | -------------------------------------------------------------------------------- /FifthWeek/springBoot2/src/main/java/kodlama/io/springBoot2/dataAccess/abstracts/BrandRepository.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.springBoot2.dataAccess.abstracts; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import kodlama.io.springBoot2.entities.concretes.Brand; 6 | 7 | public interface BrandRepository extends JpaRepository{ 8 | 9 | } 10 | -------------------------------------------------------------------------------- /FifthWeek/springBoot2/src/main/java/kodlama/io/springBoot2/entities/concretes/Brand.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.springBoot2.entities.concretes; 2 | 3 | import javax.persistence.Column; 4 | import javax.persistence.Entity; 5 | import javax.persistence.GeneratedValue; 6 | import javax.persistence.GenerationType; 7 | import javax.persistence.Id; 8 | import javax.persistence.Table; 9 | 10 | import lombok.AllArgsConstructor; 11 | import lombok.Getter; 12 | import lombok.NoArgsConstructor; 13 | import lombok.Setter; 14 | 15 | @Table(name="brands") 16 | @Getter 17 | @Setter 18 | @AllArgsConstructor 19 | @NoArgsConstructor 20 | @Entity 21 | public class Brand { 22 | 23 | @Id 24 | @GeneratedValue(strategy = GenerationType.IDENTITY) 25 | @Column(name="id") 26 | private int id; 27 | 28 | @Column(name="name") 29 | private String name; 30 | 31 | } 32 | -------------------------------------------------------------------------------- /FifthWeek/springBoot2/src/main/java/kodlama/io/springBoot2/webApi/controllers/BrandsController.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.springBoot2.webApi.controllers; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.web.bind.annotation.GetMapping; 6 | import org.springframework.web.bind.annotation.PostMapping; 7 | import org.springframework.web.bind.annotation.RequestMapping; 8 | import org.springframework.web.bind.annotation.RestController; 9 | 10 | import kodlama.io.springBoot2.business.abstracts.BrandService; 11 | import kodlama.io.springBoot2.business.requests.CreateBrandRequest; 12 | import kodlama.io.springBoot2.business.responses.GetAllBrandsResponse; 13 | 14 | @RestController //annotation bilgilendirme 15 | @RequestMapping("/api/brands") //adresleme 16 | 17 | public class BrandsController { 18 | 19 | private BrandService brandService; 20 | 21 | public BrandsController(BrandService brandService) { 22 | super(); 23 | this.brandService = brandService; 24 | } 25 | 26 | @GetMapping("/getall") 27 | public List getAll(){ 28 | return brandService.getAll(); 29 | } 30 | 31 | @PostMapping("/add") 32 | public void add(CreateBrandRequest createBrandRequest) { 33 | this.brandService.add(createBrandRequest); 34 | } 35 | 36 | } -------------------------------------------------------------------------------- /FifthWeek/springBoot2/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect 2 | spring.jpa.hibernate.ddl-auto=update 3 | spring.jpa.hibernate.show-sql=true 4 | spring.datasource.url=jdbc:postgresql://localhost:5432/springboot2 5 | spring.datasource.username=postgres 6 | spring.datasource.password=12345 7 | spring.jpa.properties.javax.persistence.validation.mode = none -------------------------------------------------------------------------------- /FifthWeek/springBoot2/src/test/java/kodlama/io/springBoot2/SpringBoot2ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.springBoot2; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class SpringBoot2ApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /FourthWeek-Spring/.gitignore: -------------------------------------------------------------------------------- 1 | /.metadata/ 2 | -------------------------------------------------------------------------------- /FourthWeek-Spring/Kodlama.io.Devs.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/FourthWeek-Spring/Kodlama.io.Devs.zip -------------------------------------------------------------------------------- /FourthWeek-Spring/Kodlama.io.Devs/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /FourthWeek-Spring/Kodlama.io.Devs/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/FourthWeek-Spring/Kodlama.io.Devs/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /FourthWeek-Spring/Kodlama.io.Devs/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.6/apache-maven-3.8.6-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar 3 | -------------------------------------------------------------------------------- /FourthWeek-Spring/Kodlama.io.Devs/mvnw: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # ---------------------------------------------------------------------------- 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # https://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # ---------------------------------------------------------------------------- 20 | 21 | # ---------------------------------------------------------------------------- 22 | # Maven Start Up Batch script 23 | # 24 | # Required ENV vars: 25 | # ------------------ 26 | # JAVA_HOME - location of a JDK home dir 27 | # 28 | # Optional ENV vars 29 | # ----------------- 30 | # M2_HOME - location of maven2's installed home dir 31 | # MAVEN_OPTS - parameters passed to the Java VM when running Maven 32 | # e.g. to debug Maven itself, use 33 | # set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 34 | # MAVEN_SKIP_RC - flag to disable loading of mavenrc files 35 | # ---------------------------------------------------------------------------- 36 | 37 | if [ -z "$MAVEN_SKIP_RC" ] ; then 38 | 39 | if [ -f /usr/local/etc/mavenrc ] ; then 40 | . /usr/local/etc/mavenrc 41 | fi 42 | 43 | if [ -f /etc/mavenrc ] ; then 44 | . /etc/mavenrc 45 | fi 46 | 47 | if [ -f "$HOME/.mavenrc" ] ; then 48 | . "$HOME/.mavenrc" 49 | fi 50 | 51 | fi 52 | 53 | # OS specific support. $var _must_ be set to either true or false. 54 | cygwin=false; 55 | darwin=false; 56 | mingw=false 57 | case "`uname`" in 58 | CYGWIN*) cygwin=true ;; 59 | MINGW*) mingw=true;; 60 | Darwin*) darwin=true 61 | # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home 62 | # See https://developer.apple.com/library/mac/qa/qa1170/_index.html 63 | if [ -z "$JAVA_HOME" ]; then 64 | if [ -x "/usr/libexec/java_home" ]; then 65 | export JAVA_HOME="`/usr/libexec/java_home`" 66 | else 67 | export JAVA_HOME="/Library/Java/Home" 68 | fi 69 | fi 70 | ;; 71 | esac 72 | 73 | if [ -z "$JAVA_HOME" ] ; then 74 | if [ -r /etc/gentoo-release ] ; then 75 | JAVA_HOME=`java-config --jre-home` 76 | fi 77 | fi 78 | 79 | if [ -z "$M2_HOME" ] ; then 80 | ## resolve links - $0 may be a link to maven's home 81 | PRG="$0" 82 | 83 | # need this for relative symlinks 84 | while [ -h "$PRG" ] ; do 85 | ls=`ls -ld "$PRG"` 86 | link=`expr "$ls" : '.*-> \(.*\)$'` 87 | if expr "$link" : '/.*' > /dev/null; then 88 | PRG="$link" 89 | else 90 | PRG="`dirname "$PRG"`/$link" 91 | fi 92 | done 93 | 94 | saveddir=`pwd` 95 | 96 | M2_HOME=`dirname "$PRG"`/.. 97 | 98 | # make it fully qualified 99 | M2_HOME=`cd "$M2_HOME" && pwd` 100 | 101 | cd "$saveddir" 102 | # echo Using m2 at $M2_HOME 103 | fi 104 | 105 | # For Cygwin, ensure paths are in UNIX format before anything is touched 106 | if $cygwin ; then 107 | [ -n "$M2_HOME" ] && 108 | M2_HOME=`cygpath --unix "$M2_HOME"` 109 | [ -n "$JAVA_HOME" ] && 110 | JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 111 | [ -n "$CLASSPATH" ] && 112 | CLASSPATH=`cygpath --path --unix "$CLASSPATH"` 113 | fi 114 | 115 | # For Mingw, ensure paths are in UNIX format before anything is touched 116 | if $mingw ; then 117 | [ -n "$M2_HOME" ] && 118 | M2_HOME="`(cd "$M2_HOME"; pwd)`" 119 | [ -n "$JAVA_HOME" ] && 120 | JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" 121 | fi 122 | 123 | if [ -z "$JAVA_HOME" ]; then 124 | javaExecutable="`which javac`" 125 | if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then 126 | # readlink(1) is not available as standard on Solaris 10. 127 | readLink=`which readlink` 128 | if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then 129 | if $darwin ; then 130 | javaHome="`dirname \"$javaExecutable\"`" 131 | javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" 132 | else 133 | javaExecutable="`readlink -f \"$javaExecutable\"`" 134 | fi 135 | javaHome="`dirname \"$javaExecutable\"`" 136 | javaHome=`expr "$javaHome" : '\(.*\)/bin'` 137 | JAVA_HOME="$javaHome" 138 | export JAVA_HOME 139 | fi 140 | fi 141 | fi 142 | 143 | if [ -z "$JAVACMD" ] ; then 144 | if [ -n "$JAVA_HOME" ] ; then 145 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 146 | # IBM's JDK on AIX uses strange locations for the executables 147 | JAVACMD="$JAVA_HOME/jre/sh/java" 148 | else 149 | JAVACMD="$JAVA_HOME/bin/java" 150 | fi 151 | else 152 | JAVACMD="`\\unset -f command; \\command -v java`" 153 | fi 154 | fi 155 | 156 | if [ ! -x "$JAVACMD" ] ; then 157 | echo "Error: JAVA_HOME is not defined correctly." >&2 158 | echo " We cannot execute $JAVACMD" >&2 159 | exit 1 160 | fi 161 | 162 | if [ -z "$JAVA_HOME" ] ; then 163 | echo "Warning: JAVA_HOME environment variable is not set." 164 | fi 165 | 166 | CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher 167 | 168 | # traverses directory structure from process work directory to filesystem root 169 | # first directory with .mvn subdirectory is considered project base directory 170 | find_maven_basedir() { 171 | 172 | if [ -z "$1" ] 173 | then 174 | echo "Path not specified to find_maven_basedir" 175 | return 1 176 | fi 177 | 178 | basedir="$1" 179 | wdir="$1" 180 | while [ "$wdir" != '/' ] ; do 181 | if [ -d "$wdir"/.mvn ] ; then 182 | basedir=$wdir 183 | break 184 | fi 185 | # workaround for JBEAP-8937 (on Solaris 10/Sparc) 186 | if [ -d "${wdir}" ]; then 187 | wdir=`cd "$wdir/.."; pwd` 188 | fi 189 | # end of workaround 190 | done 191 | echo "${basedir}" 192 | } 193 | 194 | # concatenates all lines of a file 195 | concat_lines() { 196 | if [ -f "$1" ]; then 197 | echo "$(tr -s '\n' ' ' < "$1")" 198 | fi 199 | } 200 | 201 | BASE_DIR=`find_maven_basedir "$(pwd)"` 202 | if [ -z "$BASE_DIR" ]; then 203 | exit 1; 204 | fi 205 | 206 | ########################################################################################## 207 | # Extension to allow automatically downloading the maven-wrapper.jar from Maven-central 208 | # This allows using the maven wrapper in projects that prohibit checking in binary data. 209 | ########################################################################################## 210 | if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then 211 | if [ "$MVNW_VERBOSE" = true ]; then 212 | echo "Found .mvn/wrapper/maven-wrapper.jar" 213 | fi 214 | else 215 | if [ "$MVNW_VERBOSE" = true ]; then 216 | echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." 217 | fi 218 | if [ -n "$MVNW_REPOURL" ]; then 219 | jarUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" 220 | else 221 | jarUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" 222 | fi 223 | while IFS="=" read key value; do 224 | case "$key" in (wrapperUrl) jarUrl="$value"; break ;; 225 | esac 226 | done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" 227 | if [ "$MVNW_VERBOSE" = true ]; then 228 | echo "Downloading from: $jarUrl" 229 | fi 230 | wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" 231 | if $cygwin; then 232 | wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` 233 | fi 234 | 235 | if command -v wget > /dev/null; then 236 | if [ "$MVNW_VERBOSE" = true ]; then 237 | echo "Found wget ... using wget" 238 | fi 239 | if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then 240 | wget "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" 241 | else 242 | wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" 243 | fi 244 | elif command -v curl > /dev/null; then 245 | if [ "$MVNW_VERBOSE" = true ]; then 246 | echo "Found curl ... using curl" 247 | fi 248 | if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then 249 | curl -o "$wrapperJarPath" "$jarUrl" -f 250 | else 251 | curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f 252 | fi 253 | 254 | else 255 | if [ "$MVNW_VERBOSE" = true ]; then 256 | echo "Falling back to using Java to download" 257 | fi 258 | javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" 259 | # For Cygwin, switch paths to Windows format before running javac 260 | if $cygwin; then 261 | javaClass=`cygpath --path --windows "$javaClass"` 262 | fi 263 | if [ -e "$javaClass" ]; then 264 | if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then 265 | if [ "$MVNW_VERBOSE" = true ]; then 266 | echo " - Compiling MavenWrapperDownloader.java ..." 267 | fi 268 | # Compiling the Java class 269 | ("$JAVA_HOME/bin/javac" "$javaClass") 270 | fi 271 | if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then 272 | # Running the downloader 273 | if [ "$MVNW_VERBOSE" = true ]; then 274 | echo " - Running MavenWrapperDownloader.java ..." 275 | fi 276 | ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") 277 | fi 278 | fi 279 | fi 280 | fi 281 | ########################################################################################## 282 | # End of extension 283 | ########################################################################################## 284 | 285 | export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} 286 | if [ "$MVNW_VERBOSE" = true ]; then 287 | echo $MAVEN_PROJECTBASEDIR 288 | fi 289 | MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" 290 | 291 | # For Cygwin, switch paths to Windows format before running java 292 | if $cygwin; then 293 | [ -n "$M2_HOME" ] && 294 | M2_HOME=`cygpath --path --windows "$M2_HOME"` 295 | [ -n "$JAVA_HOME" ] && 296 | JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` 297 | [ -n "$CLASSPATH" ] && 298 | CLASSPATH=`cygpath --path --windows "$CLASSPATH"` 299 | [ -n "$MAVEN_PROJECTBASEDIR" ] && 300 | MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` 301 | fi 302 | 303 | # Provide a "standardized" way to retrieve the CLI args that will 304 | # work with both Windows and non-Windows executions. 305 | MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" 306 | export MAVEN_CMD_LINE_ARGS 307 | 308 | WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain 309 | 310 | exec "$JAVACMD" \ 311 | $MAVEN_OPTS \ 312 | $MAVEN_DEBUG_OPTS \ 313 | -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ 314 | "-Dmaven.home=${M2_HOME}" \ 315 | "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ 316 | ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" 317 | -------------------------------------------------------------------------------- /FourthWeek-Spring/Kodlama.io.Devs/mvnw.cmd: -------------------------------------------------------------------------------- 1 | @REM ---------------------------------------------------------------------------- 2 | @REM Licensed to the Apache Software Foundation (ASF) under one 3 | @REM or more contributor license agreements. See the NOTICE file 4 | @REM distributed with this work for additional information 5 | @REM regarding copyright ownership. The ASF licenses this file 6 | @REM to you under the Apache License, Version 2.0 (the 7 | @REM "License"); you may not use this file except in compliance 8 | @REM with the License. You may obtain a copy of the License at 9 | @REM 10 | @REM https://www.apache.org/licenses/LICENSE-2.0 11 | @REM 12 | @REM Unless required by applicable law or agreed to in writing, 13 | @REM software distributed under the License is distributed on an 14 | @REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | @REM KIND, either express or implied. See the License for the 16 | @REM specific language governing permissions and limitations 17 | @REM under the License. 18 | @REM ---------------------------------------------------------------------------- 19 | 20 | @REM ---------------------------------------------------------------------------- 21 | @REM Maven Start Up Batch script 22 | @REM 23 | @REM Required ENV vars: 24 | @REM JAVA_HOME - location of a JDK home dir 25 | @REM 26 | @REM Optional ENV vars 27 | @REM M2_HOME - location of maven2's installed home dir 28 | @REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands 29 | @REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending 30 | @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven 31 | @REM e.g. to debug Maven itself, use 32 | @REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 33 | @REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files 34 | @REM ---------------------------------------------------------------------------- 35 | 36 | @REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' 37 | @echo off 38 | @REM set title of command window 39 | title %0 40 | @REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' 41 | @if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% 42 | 43 | @REM set %HOME% to equivalent of $HOME 44 | if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") 45 | 46 | @REM Execute a user defined script before this one 47 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre 48 | @REM check for pre script, once with legacy .bat ending and once with .cmd ending 49 | if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %* 50 | if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %* 51 | :skipRcPre 52 | 53 | @setlocal 54 | 55 | set ERROR_CODE=0 56 | 57 | @REM To isolate internal variables from possible post scripts, we use another setlocal 58 | @setlocal 59 | 60 | @REM ==== START VALIDATION ==== 61 | if not "%JAVA_HOME%" == "" goto OkJHome 62 | 63 | echo. 64 | echo Error: JAVA_HOME not found in your environment. >&2 65 | echo Please set the JAVA_HOME variable in your environment to match the >&2 66 | echo location of your Java installation. >&2 67 | echo. 68 | goto error 69 | 70 | :OkJHome 71 | if exist "%JAVA_HOME%\bin\java.exe" goto init 72 | 73 | echo. 74 | echo Error: JAVA_HOME is set to an invalid directory. >&2 75 | echo JAVA_HOME = "%JAVA_HOME%" >&2 76 | echo Please set the JAVA_HOME variable in your environment to match the >&2 77 | echo location of your Java installation. >&2 78 | echo. 79 | goto error 80 | 81 | @REM ==== END VALIDATION ==== 82 | 83 | :init 84 | 85 | @REM Find the project base dir, i.e. the directory that contains the folder ".mvn". 86 | @REM Fallback to current working directory if not found. 87 | 88 | set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% 89 | IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir 90 | 91 | set EXEC_DIR=%CD% 92 | set WDIR=%EXEC_DIR% 93 | :findBaseDir 94 | IF EXIST "%WDIR%"\.mvn goto baseDirFound 95 | cd .. 96 | IF "%WDIR%"=="%CD%" goto baseDirNotFound 97 | set WDIR=%CD% 98 | goto findBaseDir 99 | 100 | :baseDirFound 101 | set MAVEN_PROJECTBASEDIR=%WDIR% 102 | cd "%EXEC_DIR%" 103 | goto endDetectBaseDir 104 | 105 | :baseDirNotFound 106 | set MAVEN_PROJECTBASEDIR=%EXEC_DIR% 107 | cd "%EXEC_DIR%" 108 | 109 | :endDetectBaseDir 110 | 111 | IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig 112 | 113 | @setlocal EnableExtensions EnableDelayedExpansion 114 | for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a 115 | @endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% 116 | 117 | :endReadAdditionalConfig 118 | 119 | SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" 120 | set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" 121 | set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain 122 | 123 | set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" 124 | 125 | FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( 126 | IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B 127 | ) 128 | 129 | @REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central 130 | @REM This allows using the maven wrapper in projects that prohibit checking in binary data. 131 | if exist %WRAPPER_JAR% ( 132 | if "%MVNW_VERBOSE%" == "true" ( 133 | echo Found %WRAPPER_JAR% 134 | ) 135 | ) else ( 136 | if not "%MVNW_REPOURL%" == "" ( 137 | SET DOWNLOAD_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" 138 | ) 139 | if "%MVNW_VERBOSE%" == "true" ( 140 | echo Couldn't find %WRAPPER_JAR%, downloading it ... 141 | echo Downloading from: %DOWNLOAD_URL% 142 | ) 143 | 144 | powershell -Command "&{"^ 145 | "$webclient = new-object System.Net.WebClient;"^ 146 | "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ 147 | "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ 148 | "}"^ 149 | "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ 150 | "}" 151 | if "%MVNW_VERBOSE%" == "true" ( 152 | echo Finished downloading %WRAPPER_JAR% 153 | ) 154 | ) 155 | @REM End of extension 156 | 157 | @REM Provide a "standardized" way to retrieve the CLI args that will 158 | @REM work with both Windows and non-Windows executions. 159 | set MAVEN_CMD_LINE_ARGS=%* 160 | 161 | %MAVEN_JAVA_EXE% ^ 162 | %JVM_CONFIG_MAVEN_PROPS% ^ 163 | %MAVEN_OPTS% ^ 164 | %MAVEN_DEBUG_OPTS% ^ 165 | -classpath %WRAPPER_JAR% ^ 166 | "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^ 167 | %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* 168 | if ERRORLEVEL 1 goto error 169 | goto end 170 | 171 | :error 172 | set ERROR_CODE=1 173 | 174 | :end 175 | @endlocal & set ERROR_CODE=%ERROR_CODE% 176 | 177 | if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost 178 | @REM check for post script, once with legacy .bat ending and once with .cmd ending 179 | if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat" 180 | if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd" 181 | :skipRcPost 182 | 183 | @REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' 184 | if "%MAVEN_BATCH_PAUSE%"=="on" pause 185 | 186 | if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE% 187 | 188 | cmd /C exit /B %ERROR_CODE% 189 | -------------------------------------------------------------------------------- /FourthWeek-Spring/Kodlama.io.Devs/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.springframework.boot 7 | spring-boot-starter-parent 8 | 2.7.5 9 | 10 | 11 | kodlama.io 12 | Kodlama.io.Devs 13 | 0.0.1-SNAPSHOT 14 | Kodlama.io.Devs 15 | Kodlama.io.Devs with Spring Boot 16 | 17 | 11 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | org.springframework.boot 26 | spring-boot-starter-validation 27 | 28 | 29 | org.springframework.boot 30 | spring-boot-starter-web 31 | 32 | 33 | 34 | org.springframework.boot 35 | spring-boot-devtools 36 | runtime 37 | true 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | org.projectlombok 46 | lombok 47 | true 48 | 49 | 50 | org.springframework.boot 51 | spring-boot-starter-test 52 | test 53 | 54 | 55 | org.springdoc 56 | springdoc-openapi-ui 57 | 1.6.6 58 | 59 | 60 | 61 | 62 | 63 | 64 | org.springframework.boot 65 | spring-boot-maven-plugin 66 | 67 | 68 | 69 | org.projectlombok 70 | lombok 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /FourthWeek-Spring/Kodlama.io.Devs/src/main/java/kodlama/io/Kodlama/io/Devs/Application.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.Kodlama.io.Devs; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Application { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Application.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /FourthWeek-Spring/Kodlama.io.Devs/src/main/java/kodlama/io/Kodlama/io/Devs/business/abstracts/CourseService.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.Kodlama.io.Devs.business.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import kodlama.io.Kodlama.io.Devs.entities.concretes.Course; 6 | 7 | public interface CourseService { 8 | List getAll(); 9 | void add(Course course); 10 | void delete(Course course); 11 | void update(Course course); 12 | Course getCourseWithId(int id); 13 | Course getCourseWithName(String name); 14 | boolean checkName(Course course); 15 | void checkId(Course course); 16 | } 17 | -------------------------------------------------------------------------------- /FourthWeek-Spring/Kodlama.io.Devs/src/main/java/kodlama/io/Kodlama/io/Devs/business/concretes/CourseManager.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.Kodlama.io.Devs.business.concretes; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import kodlama.io.Kodlama.io.Devs.business.abstracts.CourseService; 9 | import kodlama.io.Kodlama.io.Devs.dataAccess.abstracts.CourseRepository; 10 | import kodlama.io.Kodlama.io.Devs.entities.concretes.Course; 11 | 12 | @Service 13 | public class CourseManager implements CourseService { 14 | private CourseRepository courseRepository ; 15 | 16 | @Autowired 17 | public CourseManager(CourseRepository courseRepository) { 18 | this.courseRepository = courseRepository; 19 | } 20 | 21 | @Override 22 | public List getAll(){ 23 | //is kurallari 24 | return courseRepository.getAll(); 25 | } 26 | 27 | @Override 28 | public void add(Course course) { 29 | if(checkName(course)) { 30 | if(courseRepository.getCourseWithName(course.getName()) == null ) { 31 | checkId(course); 32 | courseRepository.add(course); 33 | } 34 | } 35 | } 36 | 37 | @Override 38 | public void delete(Course course) { 39 | courseRepository.delete(course); 40 | } 41 | 42 | @Override 43 | public void update(Course course) { 44 | courseRepository.update(course); 45 | } 46 | 47 | @Override 48 | public Course getCourseWithId(int id) { 49 | return courseRepository.getCourseWithId(id); 50 | } 51 | 52 | @Override 53 | public Course getCourseWithName(String name) { 54 | return courseRepository.getCourseWithName(name); 55 | } 56 | 57 | @Override 58 | public boolean checkName(Course course) { 59 | if(course.getName() == "") { 60 | return false; 61 | }else { 62 | return true; 63 | } 64 | } 65 | 66 | @Override 67 | public void checkId(Course course) { 68 | if(course.getId() == 0 || course.getId() < 0) { 69 | int id = course.getId(); 70 | course.setId(id++); 71 | } 72 | } 73 | } -------------------------------------------------------------------------------- /FourthWeek-Spring/Kodlama.io.Devs/src/main/java/kodlama/io/Kodlama/io/Devs/dataAccess/abstracts/CourseRepository.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.Kodlama.io.Devs.dataAccess.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import kodlama.io.Kodlama.io.Devs.entities.concretes.Course; 6 | 7 | public interface CourseRepository { 8 | List getAll(); 9 | void add(Course course); 10 | void delete(Course course); 11 | void update(Course course); 12 | Course getCourseWithId(int id); 13 | Course getCourseWithName(String name); 14 | } 15 | -------------------------------------------------------------------------------- /FourthWeek-Spring/Kodlama.io.Devs/src/main/java/kodlama/io/Kodlama/io/Devs/dataAccess/concretes/InMemoryCourseRepository.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.Kodlama.io.Devs.dataAccess.concretes; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import org.springframework.stereotype.Service; 7 | 8 | import kodlama.io.Kodlama.io.Devs.dataAccess.abstracts.CourseRepository; 9 | import kodlama.io.Kodlama.io.Devs.entities.concretes.Course; 10 | 11 | @Service 12 | public class InMemoryCourseRepository implements CourseRepository { 13 | List courses; 14 | 15 | public InMemoryCourseRepository() { 16 | courses = new ArrayList();//set tree set 17 | courses.add(new Course (1, "Java")); 18 | courses.add(new Course (2, "C#")); 19 | courses.add(new Course (3, "Python")); 20 | courses.add(new Course (5, "C")); 21 | } 22 | 23 | @Override 24 | public List getAll() { 25 | return courses; 26 | } 27 | 28 | @Override 29 | public void add(Course course) { 30 | courses.add(course); 31 | } 32 | 33 | @Override 34 | public void delete(Course course) { 35 | courses.remove(course.getId()); 36 | } 37 | 38 | @Override 39 | public void update(Course course) { 40 | 41 | } 42 | 43 | @Override 44 | public Course getCourseWithId(int id) { 45 | for(Course course:courses) { 46 | if(course.getId() == id) { 47 | return course; 48 | } 49 | } 50 | return null; 51 | } 52 | 53 | @Override 54 | public Course getCourseWithName(String name) { 55 | for(Course course:courses) { 56 | if(course.getName() == name) { 57 | return course; 58 | } 59 | } 60 | return null; 61 | } 62 | } -------------------------------------------------------------------------------- /FourthWeek-Spring/Kodlama.io.Devs/src/main/java/kodlama/io/Kodlama/io/Devs/entities/concretes/Course.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.Kodlama.io.Devs.entities.concretes; 2 | 3 | public class Course { 4 | private int id; 5 | private String name; 6 | 7 | public Course() { 8 | } 9 | public Course(int id, String name) { 10 | this.id = id; 11 | this.name = name; 12 | } 13 | 14 | public int getId() { 15 | return id; 16 | } 17 | 18 | public void setId(int id) { 19 | this.id = id; 20 | } 21 | 22 | public String getName() { 23 | return name; 24 | } 25 | 26 | public void setName(String name) { 27 | this.name = name; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /FourthWeek-Spring/Kodlama.io.Devs/src/main/java/kodlama/io/Kodlama/io/Devs/webApi/controllers/CoursesController.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.Kodlama.io.Devs.webApi.controllers; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.web.bind.annotation.DeleteMapping; 6 | import org.springframework.web.bind.annotation.GetMapping; 7 | import org.springframework.web.bind.annotation.PostMapping; 8 | import org.springframework.web.bind.annotation.PutMapping; 9 | import org.springframework.web.bind.annotation.RequestMapping; 10 | import org.springframework.web.bind.annotation.RestController; 11 | 12 | import kodlama.io.Kodlama.io.Devs.business.abstracts.CourseService; 13 | import kodlama.io.Kodlama.io.Devs.entities.concretes.Course; 14 | 15 | @RestController //annotation Bilgilendirme 16 | @RequestMapping("/api/courses") //adresleme 17 | 18 | public class CoursesController { 19 | private CourseService courseService; 20 | 21 | public CoursesController(CourseService courseService) { 22 | this.courseService = courseService; 23 | } 24 | 25 | @GetMapping("/getall") 26 | public List getAll(){ 27 | return courseService.getAll(); 28 | } 29 | 30 | @DeleteMapping("/delete") 31 | public List delete(Course course){ 32 | courseService.delete(course); 33 | return courseService.getAll(); 34 | } 35 | 36 | @PutMapping("/update") 37 | public List update (Course course){ 38 | courseService.update(course); 39 | return courseService.getAll(); 40 | } 41 | 42 | @PostMapping("/add") 43 | public List add (Course course){ 44 | courseService.add(course); 45 | return courseService.getAll(); 46 | } 47 | 48 | @GetMapping("/getCourseWithName") 49 | public Course getCourseWithName (String name){ 50 | return courseService.getCourseWithName(name); 51 | } 52 | 53 | @GetMapping("/getCourseWithId") 54 | public Course getCourseWithId (int num){ 55 | return courseService.getCourseWithId(num); 56 | } 57 | } -------------------------------------------------------------------------------- /FourthWeek-Spring/Kodlama.io.Devs/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /FourthWeek-Spring/Kodlama.io.Devs/src/test/java/kodlama/io/Kodlama/io/Devs/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.Kodlama.io.Devs; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /FourthWeek-Spring/rentACar.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/FourthWeek-Spring/rentACar.zip -------------------------------------------------------------------------------- /FourthWeek-Spring/rentACar/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /FourthWeek-Spring/rentACar/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/FourthWeek-Spring/rentACar/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /FourthWeek-Spring/rentACar/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.6/apache-maven-3.8.6-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar 3 | -------------------------------------------------------------------------------- /FourthWeek-Spring/rentACar/mvnw: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # ---------------------------------------------------------------------------- 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # https://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # ---------------------------------------------------------------------------- 20 | 21 | # ---------------------------------------------------------------------------- 22 | # Maven Start Up Batch script 23 | # 24 | # Required ENV vars: 25 | # ------------------ 26 | # JAVA_HOME - location of a JDK home dir 27 | # 28 | # Optional ENV vars 29 | # ----------------- 30 | # M2_HOME - location of maven2's installed home dir 31 | # MAVEN_OPTS - parameters passed to the Java VM when running Maven 32 | # e.g. to debug Maven itself, use 33 | # set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 34 | # MAVEN_SKIP_RC - flag to disable loading of mavenrc files 35 | # ---------------------------------------------------------------------------- 36 | 37 | if [ -z "$MAVEN_SKIP_RC" ] ; then 38 | 39 | if [ -f /usr/local/etc/mavenrc ] ; then 40 | . /usr/local/etc/mavenrc 41 | fi 42 | 43 | if [ -f /etc/mavenrc ] ; then 44 | . /etc/mavenrc 45 | fi 46 | 47 | if [ -f "$HOME/.mavenrc" ] ; then 48 | . "$HOME/.mavenrc" 49 | fi 50 | 51 | fi 52 | 53 | # OS specific support. $var _must_ be set to either true or false. 54 | cygwin=false; 55 | darwin=false; 56 | mingw=false 57 | case "`uname`" in 58 | CYGWIN*) cygwin=true ;; 59 | MINGW*) mingw=true;; 60 | Darwin*) darwin=true 61 | # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home 62 | # See https://developer.apple.com/library/mac/qa/qa1170/_index.html 63 | if [ -z "$JAVA_HOME" ]; then 64 | if [ -x "/usr/libexec/java_home" ]; then 65 | export JAVA_HOME="`/usr/libexec/java_home`" 66 | else 67 | export JAVA_HOME="/Library/Java/Home" 68 | fi 69 | fi 70 | ;; 71 | esac 72 | 73 | if [ -z "$JAVA_HOME" ] ; then 74 | if [ -r /etc/gentoo-release ] ; then 75 | JAVA_HOME=`java-config --jre-home` 76 | fi 77 | fi 78 | 79 | if [ -z "$M2_HOME" ] ; then 80 | ## resolve links - $0 may be a link to maven's home 81 | PRG="$0" 82 | 83 | # need this for relative symlinks 84 | while [ -h "$PRG" ] ; do 85 | ls=`ls -ld "$PRG"` 86 | link=`expr "$ls" : '.*-> \(.*\)$'` 87 | if expr "$link" : '/.*' > /dev/null; then 88 | PRG="$link" 89 | else 90 | PRG="`dirname "$PRG"`/$link" 91 | fi 92 | done 93 | 94 | saveddir=`pwd` 95 | 96 | M2_HOME=`dirname "$PRG"`/.. 97 | 98 | # make it fully qualified 99 | M2_HOME=`cd "$M2_HOME" && pwd` 100 | 101 | cd "$saveddir" 102 | # echo Using m2 at $M2_HOME 103 | fi 104 | 105 | # For Cygwin, ensure paths are in UNIX format before anything is touched 106 | if $cygwin ; then 107 | [ -n "$M2_HOME" ] && 108 | M2_HOME=`cygpath --unix "$M2_HOME"` 109 | [ -n "$JAVA_HOME" ] && 110 | JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 111 | [ -n "$CLASSPATH" ] && 112 | CLASSPATH=`cygpath --path --unix "$CLASSPATH"` 113 | fi 114 | 115 | # For Mingw, ensure paths are in UNIX format before anything is touched 116 | if $mingw ; then 117 | [ -n "$M2_HOME" ] && 118 | M2_HOME="`(cd "$M2_HOME"; pwd)`" 119 | [ -n "$JAVA_HOME" ] && 120 | JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" 121 | fi 122 | 123 | if [ -z "$JAVA_HOME" ]; then 124 | javaExecutable="`which javac`" 125 | if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then 126 | # readlink(1) is not available as standard on Solaris 10. 127 | readLink=`which readlink` 128 | if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then 129 | if $darwin ; then 130 | javaHome="`dirname \"$javaExecutable\"`" 131 | javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" 132 | else 133 | javaExecutable="`readlink -f \"$javaExecutable\"`" 134 | fi 135 | javaHome="`dirname \"$javaExecutable\"`" 136 | javaHome=`expr "$javaHome" : '\(.*\)/bin'` 137 | JAVA_HOME="$javaHome" 138 | export JAVA_HOME 139 | fi 140 | fi 141 | fi 142 | 143 | if [ -z "$JAVACMD" ] ; then 144 | if [ -n "$JAVA_HOME" ] ; then 145 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 146 | # IBM's JDK on AIX uses strange locations for the executables 147 | JAVACMD="$JAVA_HOME/jre/sh/java" 148 | else 149 | JAVACMD="$JAVA_HOME/bin/java" 150 | fi 151 | else 152 | JAVACMD="`\\unset -f command; \\command -v java`" 153 | fi 154 | fi 155 | 156 | if [ ! -x "$JAVACMD" ] ; then 157 | echo "Error: JAVA_HOME is not defined correctly." >&2 158 | echo " We cannot execute $JAVACMD" >&2 159 | exit 1 160 | fi 161 | 162 | if [ -z "$JAVA_HOME" ] ; then 163 | echo "Warning: JAVA_HOME environment variable is not set." 164 | fi 165 | 166 | CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher 167 | 168 | # traverses directory structure from process work directory to filesystem root 169 | # first directory with .mvn subdirectory is considered project base directory 170 | find_maven_basedir() { 171 | 172 | if [ -z "$1" ] 173 | then 174 | echo "Path not specified to find_maven_basedir" 175 | return 1 176 | fi 177 | 178 | basedir="$1" 179 | wdir="$1" 180 | while [ "$wdir" != '/' ] ; do 181 | if [ -d "$wdir"/.mvn ] ; then 182 | basedir=$wdir 183 | break 184 | fi 185 | # workaround for JBEAP-8937 (on Solaris 10/Sparc) 186 | if [ -d "${wdir}" ]; then 187 | wdir=`cd "$wdir/.."; pwd` 188 | fi 189 | # end of workaround 190 | done 191 | echo "${basedir}" 192 | } 193 | 194 | # concatenates all lines of a file 195 | concat_lines() { 196 | if [ -f "$1" ]; then 197 | echo "$(tr -s '\n' ' ' < "$1")" 198 | fi 199 | } 200 | 201 | BASE_DIR=`find_maven_basedir "$(pwd)"` 202 | if [ -z "$BASE_DIR" ]; then 203 | exit 1; 204 | fi 205 | 206 | ########################################################################################## 207 | # Extension to allow automatically downloading the maven-wrapper.jar from Maven-central 208 | # This allows using the maven wrapper in projects that prohibit checking in binary data. 209 | ########################################################################################## 210 | if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then 211 | if [ "$MVNW_VERBOSE" = true ]; then 212 | echo "Found .mvn/wrapper/maven-wrapper.jar" 213 | fi 214 | else 215 | if [ "$MVNW_VERBOSE" = true ]; then 216 | echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." 217 | fi 218 | if [ -n "$MVNW_REPOURL" ]; then 219 | jarUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" 220 | else 221 | jarUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" 222 | fi 223 | while IFS="=" read key value; do 224 | case "$key" in (wrapperUrl) jarUrl="$value"; break ;; 225 | esac 226 | done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" 227 | if [ "$MVNW_VERBOSE" = true ]; then 228 | echo "Downloading from: $jarUrl" 229 | fi 230 | wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" 231 | if $cygwin; then 232 | wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` 233 | fi 234 | 235 | if command -v wget > /dev/null; then 236 | if [ "$MVNW_VERBOSE" = true ]; then 237 | echo "Found wget ... using wget" 238 | fi 239 | if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then 240 | wget "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" 241 | else 242 | wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" 243 | fi 244 | elif command -v curl > /dev/null; then 245 | if [ "$MVNW_VERBOSE" = true ]; then 246 | echo "Found curl ... using curl" 247 | fi 248 | if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then 249 | curl -o "$wrapperJarPath" "$jarUrl" -f 250 | else 251 | curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f 252 | fi 253 | 254 | else 255 | if [ "$MVNW_VERBOSE" = true ]; then 256 | echo "Falling back to using Java to download" 257 | fi 258 | javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" 259 | # For Cygwin, switch paths to Windows format before running javac 260 | if $cygwin; then 261 | javaClass=`cygpath --path --windows "$javaClass"` 262 | fi 263 | if [ -e "$javaClass" ]; then 264 | if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then 265 | if [ "$MVNW_VERBOSE" = true ]; then 266 | echo " - Compiling MavenWrapperDownloader.java ..." 267 | fi 268 | # Compiling the Java class 269 | ("$JAVA_HOME/bin/javac" "$javaClass") 270 | fi 271 | if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then 272 | # Running the downloader 273 | if [ "$MVNW_VERBOSE" = true ]; then 274 | echo " - Running MavenWrapperDownloader.java ..." 275 | fi 276 | ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") 277 | fi 278 | fi 279 | fi 280 | fi 281 | ########################################################################################## 282 | # End of extension 283 | ########################################################################################## 284 | 285 | export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} 286 | if [ "$MVNW_VERBOSE" = true ]; then 287 | echo $MAVEN_PROJECTBASEDIR 288 | fi 289 | MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" 290 | 291 | # For Cygwin, switch paths to Windows format before running java 292 | if $cygwin; then 293 | [ -n "$M2_HOME" ] && 294 | M2_HOME=`cygpath --path --windows "$M2_HOME"` 295 | [ -n "$JAVA_HOME" ] && 296 | JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` 297 | [ -n "$CLASSPATH" ] && 298 | CLASSPATH=`cygpath --path --windows "$CLASSPATH"` 299 | [ -n "$MAVEN_PROJECTBASEDIR" ] && 300 | MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` 301 | fi 302 | 303 | # Provide a "standardized" way to retrieve the CLI args that will 304 | # work with both Windows and non-Windows executions. 305 | MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" 306 | export MAVEN_CMD_LINE_ARGS 307 | 308 | WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain 309 | 310 | exec "$JAVACMD" \ 311 | $MAVEN_OPTS \ 312 | $MAVEN_DEBUG_OPTS \ 313 | -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ 314 | "-Dmaven.home=${M2_HOME}" \ 315 | "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ 316 | ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" 317 | -------------------------------------------------------------------------------- /FourthWeek-Spring/rentACar/mvnw.cmd: -------------------------------------------------------------------------------- 1 | @REM ---------------------------------------------------------------------------- 2 | @REM Licensed to the Apache Software Foundation (ASF) under one 3 | @REM or more contributor license agreements. See the NOTICE file 4 | @REM distributed with this work for additional information 5 | @REM regarding copyright ownership. The ASF licenses this file 6 | @REM to you under the Apache License, Version 2.0 (the 7 | @REM "License"); you may not use this file except in compliance 8 | @REM with the License. You may obtain a copy of the License at 9 | @REM 10 | @REM https://www.apache.org/licenses/LICENSE-2.0 11 | @REM 12 | @REM Unless required by applicable law or agreed to in writing, 13 | @REM software distributed under the License is distributed on an 14 | @REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | @REM KIND, either express or implied. See the License for the 16 | @REM specific language governing permissions and limitations 17 | @REM under the License. 18 | @REM ---------------------------------------------------------------------------- 19 | 20 | @REM ---------------------------------------------------------------------------- 21 | @REM Maven Start Up Batch script 22 | @REM 23 | @REM Required ENV vars: 24 | @REM JAVA_HOME - location of a JDK home dir 25 | @REM 26 | @REM Optional ENV vars 27 | @REM M2_HOME - location of maven2's installed home dir 28 | @REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands 29 | @REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending 30 | @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven 31 | @REM e.g. to debug Maven itself, use 32 | @REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 33 | @REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files 34 | @REM ---------------------------------------------------------------------------- 35 | 36 | @REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' 37 | @echo off 38 | @REM set title of command window 39 | title %0 40 | @REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' 41 | @if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% 42 | 43 | @REM set %HOME% to equivalent of $HOME 44 | if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") 45 | 46 | @REM Execute a user defined script before this one 47 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre 48 | @REM check for pre script, once with legacy .bat ending and once with .cmd ending 49 | if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %* 50 | if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %* 51 | :skipRcPre 52 | 53 | @setlocal 54 | 55 | set ERROR_CODE=0 56 | 57 | @REM To isolate internal variables from possible post scripts, we use another setlocal 58 | @setlocal 59 | 60 | @REM ==== START VALIDATION ==== 61 | if not "%JAVA_HOME%" == "" goto OkJHome 62 | 63 | echo. 64 | echo Error: JAVA_HOME not found in your environment. >&2 65 | echo Please set the JAVA_HOME variable in your environment to match the >&2 66 | echo location of your Java installation. >&2 67 | echo. 68 | goto error 69 | 70 | :OkJHome 71 | if exist "%JAVA_HOME%\bin\java.exe" goto init 72 | 73 | echo. 74 | echo Error: JAVA_HOME is set to an invalid directory. >&2 75 | echo JAVA_HOME = "%JAVA_HOME%" >&2 76 | echo Please set the JAVA_HOME variable in your environment to match the >&2 77 | echo location of your Java installation. >&2 78 | echo. 79 | goto error 80 | 81 | @REM ==== END VALIDATION ==== 82 | 83 | :init 84 | 85 | @REM Find the project base dir, i.e. the directory that contains the folder ".mvn". 86 | @REM Fallback to current working directory if not found. 87 | 88 | set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% 89 | IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir 90 | 91 | set EXEC_DIR=%CD% 92 | set WDIR=%EXEC_DIR% 93 | :findBaseDir 94 | IF EXIST "%WDIR%"\.mvn goto baseDirFound 95 | cd .. 96 | IF "%WDIR%"=="%CD%" goto baseDirNotFound 97 | set WDIR=%CD% 98 | goto findBaseDir 99 | 100 | :baseDirFound 101 | set MAVEN_PROJECTBASEDIR=%WDIR% 102 | cd "%EXEC_DIR%" 103 | goto endDetectBaseDir 104 | 105 | :baseDirNotFound 106 | set MAVEN_PROJECTBASEDIR=%EXEC_DIR% 107 | cd "%EXEC_DIR%" 108 | 109 | :endDetectBaseDir 110 | 111 | IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig 112 | 113 | @setlocal EnableExtensions EnableDelayedExpansion 114 | for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a 115 | @endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% 116 | 117 | :endReadAdditionalConfig 118 | 119 | SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" 120 | set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" 121 | set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain 122 | 123 | set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" 124 | 125 | FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( 126 | IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B 127 | ) 128 | 129 | @REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central 130 | @REM This allows using the maven wrapper in projects that prohibit checking in binary data. 131 | if exist %WRAPPER_JAR% ( 132 | if "%MVNW_VERBOSE%" == "true" ( 133 | echo Found %WRAPPER_JAR% 134 | ) 135 | ) else ( 136 | if not "%MVNW_REPOURL%" == "" ( 137 | SET DOWNLOAD_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" 138 | ) 139 | if "%MVNW_VERBOSE%" == "true" ( 140 | echo Couldn't find %WRAPPER_JAR%, downloading it ... 141 | echo Downloading from: %DOWNLOAD_URL% 142 | ) 143 | 144 | powershell -Command "&{"^ 145 | "$webclient = new-object System.Net.WebClient;"^ 146 | "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ 147 | "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ 148 | "}"^ 149 | "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ 150 | "}" 151 | if "%MVNW_VERBOSE%" == "true" ( 152 | echo Finished downloading %WRAPPER_JAR% 153 | ) 154 | ) 155 | @REM End of extension 156 | 157 | @REM Provide a "standardized" way to retrieve the CLI args that will 158 | @REM work with both Windows and non-Windows executions. 159 | set MAVEN_CMD_LINE_ARGS=%* 160 | 161 | %MAVEN_JAVA_EXE% ^ 162 | %JVM_CONFIG_MAVEN_PROPS% ^ 163 | %MAVEN_OPTS% ^ 164 | %MAVEN_DEBUG_OPTS% ^ 165 | -classpath %WRAPPER_JAR% ^ 166 | "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^ 167 | %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* 168 | if ERRORLEVEL 1 goto error 169 | goto end 170 | 171 | :error 172 | set ERROR_CODE=1 173 | 174 | :end 175 | @endlocal & set ERROR_CODE=%ERROR_CODE% 176 | 177 | if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost 178 | @REM check for post script, once with legacy .bat ending and once with .cmd ending 179 | if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat" 180 | if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd" 181 | :skipRcPost 182 | 183 | @REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' 184 | if "%MAVEN_BATCH_PAUSE%"=="on" pause 185 | 186 | if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE% 187 | 188 | cmd /C exit /B %ERROR_CODE% 189 | -------------------------------------------------------------------------------- /FourthWeek-Spring/rentACar/pom2.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.springframework.boot 7 | spring-boot-starter-parent 8 | 2.7.5 9 | 10 | 11 | kodlama.io 12 | rentACar 13 | 0.0.1-SNAPSHOT 14 | rentACar 15 | Demo project for Spring Boot 16 | 17 | 11 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | org.springframework.boot 26 | spring-boot-starter-validation 27 | 28 | 29 | org.springframework.boot 30 | spring-boot-starter-web 31 | 32 | 33 | 34 | org.springframework.boot 35 | spring-boot-devtools 36 | runtime 37 | true 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | org.projectlombok 46 | lombok 47 | true 48 | 49 | 50 | org.springframework.boot 51 | spring-boot-starter-test 52 | test 53 | 54 | 55 | org.springdoc 56 | springdoc-openapi-ui 57 | 1.6.6 58 | 59 | 60 | 61 | 62 | 63 | 64 | org.springframework.boot 65 | spring-boot-maven-plugin 66 | 67 | 68 | 69 | org.projectlombok 70 | lombok 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /FourthWeek-Spring/rentACar/src/main/java/kodlama/io/rentACar/RentACarApplication.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.rentACar; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class RentACarApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(RentACarApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /FourthWeek-Spring/rentACar/src/main/java/kodlama/io/rentACar/business/abstracts/BrandService.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.rentACar.business.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import kodlama.io.rentACar.entities.concretes.Brand; 6 | 7 | public interface BrandService { 8 | List getAll(); 9 | } 10 | -------------------------------------------------------------------------------- /FourthWeek-Spring/rentACar/src/main/java/kodlama/io/rentACar/business/concretes/BrandManager.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.rentACar.business.concretes; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import kodlama.io.rentACar.business.abstracts.BrandService; 9 | import kodlama.io.rentACar.dataAccess.abstracts.BrandRepository; 10 | import kodlama.io.rentACar.entities.concretes.Brand; 11 | 12 | @Service //Bu sınıf bir business nesnesidir 13 | public class BrandManager implements BrandService{ 14 | 15 | private BrandRepository brandRepository; 16 | 17 | @Autowired 18 | public BrandManager(BrandRepository brandRepository) { 19 | super(); 20 | this.brandRepository = brandRepository; 21 | } 22 | 23 | @Override 24 | public List getAll() { 25 | // is kurallari 26 | return brandRepository.getAll(); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /FourthWeek-Spring/rentACar/src/main/java/kodlama/io/rentACar/dataAccess/abstracts/BrandRepository.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.rentACar.dataAccess.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import kodlama.io.rentACar.entities.concretes.Brand; 6 | 7 | public interface BrandRepository { 8 | List getAll(); //getAll() 'ı cagiran birisi markaları listeler 9 | } 10 | -------------------------------------------------------------------------------- /FourthWeek-Spring/rentACar/src/main/java/kodlama/io/rentACar/dataAccess/concretes/InMemoryBrandRepository.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.rentACar.dataAccess.concretes; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import org.springframework.stereotype.Repository; 7 | 8 | import kodlama.io.rentACar.dataAccess.abstracts.BrandRepository; 9 | import kodlama.io.rentACar.entities.concretes.Brand; 10 | 11 | @Repository //bu sınıf bir data access nesnesidir 12 | public class InMemoryBrandRepository implements BrandRepository { 13 | 14 | List brands; 15 | 16 | public InMemoryBrandRepository() { 17 | brands = new ArrayList(); 18 | brands.add(new Brand (1, "BMW")); 19 | brands.add(new Brand (2, "Mercedes")); 20 | brands.add(new Brand (3, "Audi")); 21 | brands.add(new Brand (4, "Fiat")); 22 | brands.add(new Brand (5, "Renault")); 23 | } 24 | 25 | @Override 26 | public List getAll() { 27 | // icinde markalar bulunduran liste döndürecek 28 | return brands; 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /FourthWeek-Spring/rentACar/src/main/java/kodlama/io/rentACar/entities/concretes/Brand.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.rentACar.entities.concretes; 2 | 3 | public class Brand { 4 | private int id; 5 | private String name; 6 | 7 | public Brand() { 8 | super(); 9 | } 10 | 11 | public Brand(int id, String name) { 12 | super(); 13 | this.id = id; 14 | this.name = name; 15 | } 16 | 17 | public int getId() { 18 | return id; 19 | } 20 | 21 | public void setId(int id) { 22 | this.id = id; 23 | } 24 | 25 | public String getName() { 26 | return name; 27 | } 28 | 29 | public void setName(String name) { 30 | this.name = name; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /FourthWeek-Spring/rentACar/src/main/java/kodlama/io/rentACar/webApi/controllers/BrandsController.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.rentACar.webApi.controllers; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.web.bind.annotation.GetMapping; 7 | import org.springframework.web.bind.annotation.RequestMapping; 8 | import org.springframework.web.bind.annotation.RestController; 9 | 10 | import kodlama.io.rentACar.business.abstracts.BrandService; 11 | import kodlama.io.rentACar.entities.concretes.Brand; 12 | 13 | @RestController //annotation bilgilendirme 14 | @RequestMapping("/api/brands") //adresleme 15 | 16 | public class BrandsController { 17 | 18 | private BrandService brandService; 19 | 20 | public BrandsController(BrandService brandService) { 21 | super(); 22 | this.brandService = brandService; 23 | } 24 | 25 | @GetMapping("/getall") 26 | public List getAll(){ 27 | return brandService.getAll(); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /FourthWeek-Spring/rentACar/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /FourthWeek-Spring/rentACar/src/test/java/kodlama/io/rentACar/RentACarApplicationTests.java: -------------------------------------------------------------------------------- 1 | package kodlama.io.rentACar; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class RentACarApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /SecondWeek/oop1/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /SecondWeek/oop1/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | oop1 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /SecondWeek/oop1/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /SecondWeek/oop1/bin/oop1/CorporateCustomer.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/SecondWeek/oop1/bin/oop1/CorporateCustomer.class -------------------------------------------------------------------------------- /SecondWeek/oop1/bin/oop1/Customer.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/SecondWeek/oop1/bin/oop1/Customer.class -------------------------------------------------------------------------------- /SecondWeek/oop1/bin/oop1/IndividualCustomer.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/SecondWeek/oop1/bin/oop1/IndividualCustomer.class -------------------------------------------------------------------------------- /SecondWeek/oop1/bin/oop1/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/SecondWeek/oop1/bin/oop1/Main.class -------------------------------------------------------------------------------- /SecondWeek/oop1/bin/oop1/Product.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/SecondWeek/oop1/bin/oop1/Product.class -------------------------------------------------------------------------------- /SecondWeek/oop1/src/oop1/CorporateCustomer.java: -------------------------------------------------------------------------------- 1 | package oop1; 2 | 3 | public class CorporateCustomer extends Customer { 4 | private String companyName; 5 | private String taxNumber; 6 | 7 | public String getCompanyName() { 8 | return companyName; 9 | } 10 | 11 | public void setCompanyName(String companyName) { 12 | this.companyName = companyName; 13 | } 14 | 15 | public String getTaxNumber() { 16 | return taxNumber; 17 | } 18 | 19 | public void setTaxNumber(String taxNumber) { 20 | this.taxNumber = taxNumber; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /SecondWeek/oop1/src/oop1/Customer.java: -------------------------------------------------------------------------------- 1 | package oop1; 2 | 3 | public class Customer { 4 | private int id; 5 | private String customerNumber; 6 | private String phone; 7 | 8 | public int getId() { 9 | return id; 10 | } 11 | 12 | public void setId(int id) { 13 | this.id = id; 14 | } 15 | 16 | public String getCustomerNumber() { 17 | return customerNumber; 18 | } 19 | 20 | public void setCustomerNumber(String customerNumber) { 21 | this.customerNumber = customerNumber; 22 | } 23 | 24 | public String getPhone() { 25 | return phone; 26 | } 27 | 28 | public void setPhone(String phone) { 29 | this.phone = phone; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /SecondWeek/oop1/src/oop1/IndividualCustomer.java: -------------------------------------------------------------------------------- 1 | package oop1; 2 | 3 | public class IndividualCustomer extends Customer { 4 | private String firstName; 5 | private String lastName; 6 | 7 | public String getFirstName() { 8 | return firstName; 9 | } 10 | 11 | public void setFirstName(String firstName) { 12 | this.firstName = firstName; 13 | } 14 | 15 | public String getLastName() { 16 | return lastName; 17 | } 18 | 19 | public void setLastName(String lastName) { 20 | this.lastName = lastName; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /SecondWeek/oop1/src/oop1/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/SecondWeek/oop1/src/oop1/Main.java -------------------------------------------------------------------------------- /SecondWeek/oop1/src/oop1/Product.java: -------------------------------------------------------------------------------- 1 | package oop1; 2 | 3 | public class Product { 4 | private String name; 5 | private double unitPrice; 6 | private double discount; 7 | private String imageUrl; 8 | private int unitsInStock; 9 | 10 | public String getName() { 11 | return name; 12 | } 13 | 14 | public void setName(String name) { 15 | this.name = name; 16 | } 17 | 18 | public double getUnitPrice() { 19 | return unitPrice; 20 | } 21 | 22 | public void setUnitPrice(double unitPrice) { 23 | this.unitPrice = unitPrice; 24 | } 25 | 26 | public double getDiscount() { 27 | return discount; 28 | } 29 | 30 | public void setDiscount(double discount) { 31 | this.discount = discount; 32 | } 33 | 34 | public String getImageUrl() { 35 | return imageUrl; 36 | } 37 | 38 | public void setImageUrl(String imageUrl) { 39 | this.imageUrl = imageUrl; 40 | } 41 | 42 | public int getUnitsInStock() { 43 | return unitsInStock; 44 | } 45 | 46 | public void setUnitsInStock(int unitsInStock) { 47 | this.unitsInStock = unitsInStock; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /ThirdWeek/.gitignore: -------------------------------------------------------------------------------- 1 | /.metadata/ 2 | -------------------------------------------------------------------------------- /ThirdWeek/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Editor-based HTTP Client requests 5 | /httpRequests/ 6 | # Datasource local storage ignored files 7 | /dataSources/ 8 | /dataSources.local.xml 9 | -------------------------------------------------------------------------------- /ThirdWeek/.idea/ThirdWeek.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ThirdWeek/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ThirdWeek/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /ThirdWeek/Java-Kamp-2022 - Kısayol.lnk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/Java-Kamp-2022 - Kısayol.lnk -------------------------------------------------------------------------------- /ThirdWeek/abstractClasses/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ThirdWeek/abstractClasses/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /ThirdWeek/abstractClasses/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | abstractClasses 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /ThirdWeek/abstractClasses/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /ThirdWeek/abstractClasses/src/abstractClasses/GameCalculator.java: -------------------------------------------------------------------------------- 1 | package abstractClasses; 2 | 3 | public abstract class GameCalculator { 4 | 5 | public abstract void hesapla() ; 6 | 7 | public final void gameOver() { 8 | System.out.println("Oyun bitti :("); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /ThirdWeek/abstractClasses/src/abstractClasses/KidsGameCalculator.java: -------------------------------------------------------------------------------- 1 | package abstractClasses; 2 | 3 | public class KidsGameCalculator extends GameCalculator{ 4 | 5 | @Override 6 | public void hesapla() { 7 | System.out.println("100"); 8 | } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /ThirdWeek/abstractClasses/src/abstractClasses/Main.java: -------------------------------------------------------------------------------- 1 | package abstractClasses; 2 | 3 | public class Main { 4 | 5 | public static void main(String[] args) { 6 | // TODO Auto-generated method stub 7 | WomanGameCalculator womanGameCalculator = new WomanGameCalculator(); 8 | womanGameCalculator.hesapla(); 9 | womanGameCalculator.gameOver(); 10 | 11 | GameCalculator gameCalculator = new WomanGameCalculator(); 12 | 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /ThirdWeek/abstractClasses/src/abstractClasses/ManGameCalculator.java: -------------------------------------------------------------------------------- 1 | package abstractClasses; 2 | 3 | public class ManGameCalculator extends GameCalculator{ 4 | 5 | @Override 6 | public void hesapla() { 7 | System.out.println("80"); 8 | } 9 | 10 | } 11 | 12 | -------------------------------------------------------------------------------- /ThirdWeek/abstractClasses/src/abstractClasses/WomanGameCalculator.java: -------------------------------------------------------------------------------- 1 | package abstractClasses; 2 | 3 | public class WomanGameCalculator extends GameCalculator { 4 | 5 | @Override 6 | public void hesapla() { 7 | System.out.println("90"); 8 | } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /ThirdWeek/abstractDemo/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ThirdWeek/abstractDemo/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /ThirdWeek/abstractDemo/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | abstractDemo 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /ThirdWeek/abstractDemo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /ThirdWeek/abstractDemo/src/abstractDemo/BaseDatabaseManager.java: -------------------------------------------------------------------------------- 1 | package abstractDemo; 2 | 3 | public abstract class BaseDatabaseManager { 4 | public abstract void getData(); 5 | } 6 | -------------------------------------------------------------------------------- /ThirdWeek/abstractDemo/src/abstractDemo/CustomerManager.java: -------------------------------------------------------------------------------- 1 | package abstractDemo; 2 | 3 | public class CustomerManager { 4 | 5 | BaseDatabaseManager databaseManager; 6 | 7 | public void getCustomers() { 8 | databaseManager.getData(); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /ThirdWeek/abstractDemo/src/abstractDemo/Main.java: -------------------------------------------------------------------------------- 1 | package abstractDemo; 2 | 3 | public class Main { 4 | 5 | public static void main(String[] args) { 6 | 7 | CustomerManager customerManager = new CustomerManager(); 8 | customerManager.databaseManager= new OracleDatabaseManager(); 9 | customerManager.getCustomers(); 10 | 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /ThirdWeek/abstractDemo/src/abstractDemo/OracleDatabaseManager.java: -------------------------------------------------------------------------------- 1 | package abstractDemo; 2 | 3 | public class OracleDatabaseManager extends BaseDatabaseManager{ 4 | 5 | @Override 6 | public void getData() { 7 | System.out.println("Veri getirildi : Oracle"); 8 | } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /ThirdWeek/abstractDemo/src/abstractDemo/SqlServerDatabaseManager.java: -------------------------------------------------------------------------------- 1 | package abstractDemo; 2 | 3 | public class SqlServerDatabaseManager extends BaseDatabaseManager { 4 | 5 | @Override 6 | public void getData() { 7 | System.out.println("Veri getirildi : Sql Server"); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/.vs/oopUcuncuHaftaOdev/DesignTimeBuild/.dtbcache.v2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/c#-oop/.vs/oopUcuncuHaftaOdev/DesignTimeBuild/.dtbcache.v2 -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/.vs/oopUcuncuHaftaOdev/v16/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/c#-oop/.vs/oopUcuncuHaftaOdev/v16/.suo -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.31005.135 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "oopUcuncuHaftaOdev", "oopUcuncuHaftaOdev\oopUcuncuHaftaOdev.csproj", "{316C5C76-D2E1-444C-9685-57D8C34D2074}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {316C5C76-D2E1-444C-9685-57D8C34D2074}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {316C5C76-D2E1-444C-9685-57D8C34D2074}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {316C5C76-D2E1-444C-9685-57D8C34D2074}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {316C5C76-D2E1-444C-9685-57D8C34D2074}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {9DF1E84E-C5E7-400A-97C7-2CFF78F4F441} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace oopUcuncuHaftaOdev 4 | { 5 | class Program 6 | { 7 | static void Main(string[] args) 8 | { 9 | //CreditManager creditManager = new CreditManager(); 10 | //creditManager.Calculate(); 11 | //creditManager.Save(); 12 | 13 | //Customer customer = new Customer(); 14 | //customer.Id = 1; 15 | //customer.City = "Ankara"; 16 | 17 | //CustomerManager customerManager = new CustomerManager(customer); // instance oluşturmak, instance creation ,örneğini oluşturmak 18 | //customerManager.Save(); 19 | //customerManager.Delete(); 20 | 21 | //Company company = new Company(); 22 | //company.TaxNumber = "100000"; 23 | //company.CompanyName = "Arçelik"; 24 | //company.Id = 100; 25 | 26 | //CustomerManager customerManager2 = new CustomerManager(new Person()); 27 | 28 | //Person person = new Person(); 29 | //person.NationalIdendity = ""; 30 | 31 | //Customer c1 = new Customer(); 32 | //Customer c2 = new Person(); 33 | //Customer c3 = new Company(); 34 | 35 | 36 | //Dependency Injection IoC Container 37 | CustomerManager customerManager = new CustomerManager(new Customer(), new MilitaryCreditManager()); 38 | customerManager.GiveCredit(); 39 | 40 | Console.ReadLine(); 41 | } 42 | } 43 | 44 | class CreditManager 45 | { 46 | public void Calculate() 47 | { 48 | Console.WriteLine("hesaplandı"); 49 | } 50 | public void Save() 51 | { 52 | Console.WriteLine("kredi verildi"); 53 | } 54 | } 55 | 56 | interface ICreditManager 57 | { 58 | void Calculate(); 59 | void Save(); 60 | } 61 | 62 | abstract class BaseCreditManager : ICreditManager 63 | { 64 | public abstract void Calculate(); 65 | 66 | public void Save() 67 | { 68 | Console.WriteLine(" Kaydedildi"); 69 | } 70 | } 71 | 72 | class TeacherCreditManager : BaseCreditManager ,ICreditManager 73 | { 74 | public override void Calculate() 75 | { 76 | Console.WriteLine("Öğretmen kredisi hesaplandı"); 77 | } 78 | //DRY do not repeat yourself 79 | 80 | } 81 | class MilitaryCreditManager : BaseCreditManager, ICreditManager 82 | { 83 | public override void Calculate() 84 | { 85 | Console.WriteLine("Asker kredisi hesaplandı"); 86 | } 87 | } 88 | 89 | class CarCreditManager : BaseCreditManager, ICreditManager 90 | { 91 | public override void Calculate() 92 | { 93 | Console.WriteLine("Araba kredisi hesaplandı"); 94 | } 95 | } 96 | 97 | //SOLID 98 | class Customer 99 | { 100 | public Customer() 101 | { 102 | Console.WriteLine("Müşteri nesnesi başlatıldı"); 103 | } 104 | public int Id { get; set; } 105 | 106 | public string City { get; set; } 107 | } 108 | 109 | class Person : Customer 110 | { 111 | public string FirstName { get; set; } 112 | public string LastName { get; set; } 113 | public string NationalIdendity { get; set; } 114 | } 115 | 116 | class Company : Customer 117 | { 118 | public string CompanyName { get; set; } 119 | public string TaxNumber { get; set; } 120 | } 121 | 122 | //Katmanlı Mimariler 123 | class CustomerManager 124 | { 125 | private Customer _customer; 126 | private ICreditManager _creditManager; 127 | public CustomerManager(Customer customer, ICreditManager creditManager) 128 | { 129 | _customer = customer; 130 | _creditManager = creditManager; 131 | } 132 | public void Save() 133 | { 134 | Console.WriteLine("Müşteri Kaydedildi - "); 135 | } 136 | public void Delete() 137 | { 138 | Console.WriteLine("Müşteri silindi - "); 139 | } 140 | public void GiveCredit() 141 | { 142 | _creditManager.Calculate(); 143 | Console.WriteLine("Kredi verildi."); 144 | } 145 | } 146 | } 147 | -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/bin/Debug/netcoreapp3.1/oopUcuncuHaftaOdev.deps.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeTarget": { 3 | "name": ".NETCoreApp,Version=v3.1", 4 | "signature": "" 5 | }, 6 | "compilationOptions": {}, 7 | "targets": { 8 | ".NETCoreApp,Version=v3.1": { 9 | "oopUcuncuHaftaOdev/1.0.0": { 10 | "runtime": { 11 | "oopUcuncuHaftaOdev.dll": {} 12 | } 13 | } 14 | } 15 | }, 16 | "libraries": { 17 | "oopUcuncuHaftaOdev/1.0.0": { 18 | "type": "project", 19 | "serviceable": false, 20 | "sha512": "" 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/bin/Debug/netcoreapp3.1/oopUcuncuHaftaOdev.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/c#-oop/oopUcuncuHaftaOdev/bin/Debug/netcoreapp3.1/oopUcuncuHaftaOdev.dll -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/bin/Debug/netcoreapp3.1/oopUcuncuHaftaOdev.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/c#-oop/oopUcuncuHaftaOdev/bin/Debug/netcoreapp3.1/oopUcuncuHaftaOdev.exe -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/bin/Debug/netcoreapp3.1/oopUcuncuHaftaOdev.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/c#-oop/oopUcuncuHaftaOdev/bin/Debug/netcoreapp3.1/oopUcuncuHaftaOdev.pdb -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/bin/Debug/netcoreapp3.1/oopUcuncuHaftaOdev.runtimeconfig.dev.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "additionalProbingPaths": [ 4 | "C:\\Users\\User\\.dotnet\\store\\|arch|\\|tfm|", 5 | "C:\\Users\\User\\.nuget\\packages" 6 | ] 7 | } 8 | } -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/bin/Debug/netcoreapp3.1/oopUcuncuHaftaOdev.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "netcoreapp3.1", 4 | "framework": { 5 | "name": "Microsoft.NETCore.App", 6 | "version": "3.1.0" 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs: -------------------------------------------------------------------------------- 1 | // 2 | using System; 3 | using System.Reflection; 4 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")] 5 | -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/obj/Debug/netcoreapp3.1/apphost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/c#-oop/oopUcuncuHaftaOdev/obj/Debug/netcoreapp3.1/apphost.exe -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/obj/Debug/netcoreapp3.1/oopUcuncuHaftaOdev.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("oopUcuncuHaftaOdev")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 17 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 18 | [assembly: System.Reflection.AssemblyProductAttribute("oopUcuncuHaftaOdev")] 19 | [assembly: System.Reflection.AssemblyTitleAttribute("oopUcuncuHaftaOdev")] 20 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 21 | 22 | // Generated by the MSBuild WriteCodeFragment class. 23 | 24 | -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/obj/Debug/netcoreapp3.1/oopUcuncuHaftaOdev.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | ae69d4cca8f8695693311fb7d1ad12378482ce2e 2 | -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/obj/Debug/netcoreapp3.1/oopUcuncuHaftaOdev.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/c#-oop/oopUcuncuHaftaOdev/obj/Debug/netcoreapp3.1/oopUcuncuHaftaOdev.assets.cache -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/obj/Debug/netcoreapp3.1/oopUcuncuHaftaOdev.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | a557e75fffce79d2c0c97f246908c33c79a7bf90 2 | -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/obj/Debug/netcoreapp3.1/oopUcuncuHaftaOdev.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Java-Kamp-2022\oopUcuncuHaftaOdev\oopUcuncuHaftaOdev\bin\Debug\netcoreapp3.1\oopUcuncuHaftaOdev.exe 2 | C:\Java-Kamp-2022\oopUcuncuHaftaOdev\oopUcuncuHaftaOdev\bin\Debug\netcoreapp3.1\oopUcuncuHaftaOdev.deps.json 3 | C:\Java-Kamp-2022\oopUcuncuHaftaOdev\oopUcuncuHaftaOdev\bin\Debug\netcoreapp3.1\oopUcuncuHaftaOdev.runtimeconfig.json 4 | C:\Java-Kamp-2022\oopUcuncuHaftaOdev\oopUcuncuHaftaOdev\bin\Debug\netcoreapp3.1\oopUcuncuHaftaOdev.runtimeconfig.dev.json 5 | C:\Java-Kamp-2022\oopUcuncuHaftaOdev\oopUcuncuHaftaOdev\bin\Debug\netcoreapp3.1\oopUcuncuHaftaOdev.dll 6 | C:\Java-Kamp-2022\oopUcuncuHaftaOdev\oopUcuncuHaftaOdev\bin\Debug\netcoreapp3.1\oopUcuncuHaftaOdev.pdb 7 | C:\Java-Kamp-2022\oopUcuncuHaftaOdev\oopUcuncuHaftaOdev\obj\Debug\netcoreapp3.1\oopUcuncuHaftaOdev.csprojAssemblyReference.cache 8 | C:\Java-Kamp-2022\oopUcuncuHaftaOdev\oopUcuncuHaftaOdev\obj\Debug\netcoreapp3.1\oopUcuncuHaftaOdev.AssemblyInfoInputs.cache 9 | C:\Java-Kamp-2022\oopUcuncuHaftaOdev\oopUcuncuHaftaOdev\obj\Debug\netcoreapp3.1\oopUcuncuHaftaOdev.AssemblyInfo.cs 10 | C:\Java-Kamp-2022\oopUcuncuHaftaOdev\oopUcuncuHaftaOdev\obj\Debug\netcoreapp3.1\oopUcuncuHaftaOdev.csproj.CoreCompileInputs.cache 11 | C:\Java-Kamp-2022\oopUcuncuHaftaOdev\oopUcuncuHaftaOdev\obj\Debug\netcoreapp3.1\oopUcuncuHaftaOdev.dll 12 | C:\Java-Kamp-2022\oopUcuncuHaftaOdev\oopUcuncuHaftaOdev\obj\Debug\netcoreapp3.1\oopUcuncuHaftaOdev.pdb 13 | C:\Java-Kamp-2022\oopUcuncuHaftaOdev\oopUcuncuHaftaOdev\obj\Debug\netcoreapp3.1\oopUcuncuHaftaOdev.genruntimeconfig.cache 14 | -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/obj/Debug/netcoreapp3.1/oopUcuncuHaftaOdev.csprojAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/c#-oop/oopUcuncuHaftaOdev/obj/Debug/netcoreapp3.1/oopUcuncuHaftaOdev.csprojAssemblyReference.cache -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/obj/Debug/netcoreapp3.1/oopUcuncuHaftaOdev.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/c#-oop/oopUcuncuHaftaOdev/obj/Debug/netcoreapp3.1/oopUcuncuHaftaOdev.dll -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/obj/Debug/netcoreapp3.1/oopUcuncuHaftaOdev.genruntimeconfig.cache: -------------------------------------------------------------------------------- 1 | 51c1cc6221178d76807aeb644dc37222dfef1a7d 2 | -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/obj/Debug/netcoreapp3.1/oopUcuncuHaftaOdev.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/c#-oop/oopUcuncuHaftaOdev/obj/Debug/netcoreapp3.1/oopUcuncuHaftaOdev.pdb -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/obj/oopUcuncuHaftaOdev.csproj.nuget.dgspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "format": 1, 3 | "restore": { 4 | "C:\\Java-Kamp-2022\\oopUcuncuHaftaOdev\\oopUcuncuHaftaOdev\\oopUcuncuHaftaOdev.csproj": {} 5 | }, 6 | "projects": { 7 | "C:\\Java-Kamp-2022\\oopUcuncuHaftaOdev\\oopUcuncuHaftaOdev\\oopUcuncuHaftaOdev.csproj": { 8 | "version": "1.0.0", 9 | "restore": { 10 | "projectUniqueName": "C:\\Java-Kamp-2022\\oopUcuncuHaftaOdev\\oopUcuncuHaftaOdev\\oopUcuncuHaftaOdev.csproj", 11 | "projectName": "oopUcuncuHaftaOdev", 12 | "projectPath": "C:\\Java-Kamp-2022\\oopUcuncuHaftaOdev\\oopUcuncuHaftaOdev\\oopUcuncuHaftaOdev.csproj", 13 | "packagesPath": "C:\\Users\\User\\.nuget\\packages\\", 14 | "outputPath": "C:\\Java-Kamp-2022\\oopUcuncuHaftaOdev\\oopUcuncuHaftaOdev\\obj\\", 15 | "projectStyle": "PackageReference", 16 | "configFilePaths": [ 17 | "C:\\Users\\User\\AppData\\Roaming\\NuGet\\NuGet.Config", 18 | "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" 19 | ], 20 | "originalTargetFrameworks": [ 21 | "netcoreapp3.1" 22 | ], 23 | "sources": { 24 | "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, 25 | "https://api.nuget.org/v3/index.json": {} 26 | }, 27 | "frameworks": { 28 | "netcoreapp3.1": { 29 | "targetAlias": "netcoreapp3.1", 30 | "projectReferences": {} 31 | } 32 | }, 33 | "warningProperties": { 34 | "warnAsError": [ 35 | "NU1605" 36 | ] 37 | } 38 | }, 39 | "frameworks": { 40 | "netcoreapp3.1": { 41 | "targetAlias": "netcoreapp3.1", 42 | "imports": [ 43 | "net461", 44 | "net462", 45 | "net47", 46 | "net471", 47 | "net472", 48 | "net48" 49 | ], 50 | "assetTargetFallback": true, 51 | "warn": true, 52 | "frameworkReferences": { 53 | "Microsoft.NETCore.App": { 54 | "privateAssets": "all" 55 | } 56 | }, 57 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.103\\RuntimeIdentifierGraph.json" 58 | } 59 | } 60 | } 61 | } 62 | } -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/obj/oopUcuncuHaftaOdev.csproj.nuget.g.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | True 5 | NuGet 6 | $(MSBuildThisFileDirectory)project.assets.json 7 | $(UserProfile)\.nuget\packages\ 8 | C:\Users\User\.nuget\packages\ 9 | PackageReference 10 | 5.8.1 11 | 12 | 13 | 14 | 15 | 16 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 17 | 18 | -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/obj/oopUcuncuHaftaOdev.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 5 | 6 | -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/obj/project.assets.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "targets": { 4 | ".NETCoreApp,Version=v3.1": {} 5 | }, 6 | "libraries": {}, 7 | "projectFileDependencyGroups": { 8 | ".NETCoreApp,Version=v3.1": [] 9 | }, 10 | "packageFolders": { 11 | "C:\\Users\\User\\.nuget\\packages\\": {} 12 | }, 13 | "project": { 14 | "version": "1.0.0", 15 | "restore": { 16 | "projectUniqueName": "C:\\Java-Kamp-2022\\oopUcuncuHaftaOdev\\oopUcuncuHaftaOdev\\oopUcuncuHaftaOdev.csproj", 17 | "projectName": "oopUcuncuHaftaOdev", 18 | "projectPath": "C:\\Java-Kamp-2022\\oopUcuncuHaftaOdev\\oopUcuncuHaftaOdev\\oopUcuncuHaftaOdev.csproj", 19 | "packagesPath": "C:\\Users\\User\\.nuget\\packages\\", 20 | "outputPath": "C:\\Java-Kamp-2022\\oopUcuncuHaftaOdev\\oopUcuncuHaftaOdev\\obj\\", 21 | "projectStyle": "PackageReference", 22 | "configFilePaths": [ 23 | "C:\\Users\\User\\AppData\\Roaming\\NuGet\\NuGet.Config", 24 | "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" 25 | ], 26 | "originalTargetFrameworks": [ 27 | "netcoreapp3.1" 28 | ], 29 | "sources": { 30 | "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, 31 | "https://api.nuget.org/v3/index.json": {} 32 | }, 33 | "frameworks": { 34 | "netcoreapp3.1": { 35 | "targetAlias": "netcoreapp3.1", 36 | "projectReferences": {} 37 | } 38 | }, 39 | "warningProperties": { 40 | "warnAsError": [ 41 | "NU1605" 42 | ] 43 | } 44 | }, 45 | "frameworks": { 46 | "netcoreapp3.1": { 47 | "targetAlias": "netcoreapp3.1", 48 | "imports": [ 49 | "net461", 50 | "net462", 51 | "net47", 52 | "net471", 53 | "net472", 54 | "net48" 55 | ], 56 | "assetTargetFallback": true, 57 | "warn": true, 58 | "frameworkReferences": { 59 | "Microsoft.NETCore.App": { 60 | "privateAssets": "all" 61 | } 62 | }, 63 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.103\\RuntimeIdentifierGraph.json" 64 | } 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/obj/project.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "dgSpecHash": "XxOFbvNz/dpLlxEcctcFtymJwqsBpWBfaIL6i1IFCx+bar7mlCbgRVmt9M+NK/tDts0x5ZoCtdYXr42PCmmUqw==", 4 | "success": true, 5 | "projectFilePath": "C:\\Java-Kamp-2022\\oopUcuncuHaftaOdev\\oopUcuncuHaftaOdev\\oopUcuncuHaftaOdev.csproj", 6 | "expectedPackageFiles": [], 7 | "logs": [] 8 | } -------------------------------------------------------------------------------- /ThirdWeek/c#-oop/oopUcuncuHaftaOdev/oopUcuncuHaftaOdev.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | netcoreapp3.1 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ThirdWeek/interfaceDemo/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ThirdWeek/interfaceDemo/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /ThirdWeek/interfaceDemo/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | interfaceDemo 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /ThirdWeek/interfaceDemo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /ThirdWeek/interfaceDemo/src/interfaceDemo/IEatable.java: -------------------------------------------------------------------------------- 1 | package interfaceDemo; 2 | 3 | public interface IEatable { 4 | void eat(); 5 | } 6 | -------------------------------------------------------------------------------- /ThirdWeek/interfaceDemo/src/interfaceDemo/IPayable.java: -------------------------------------------------------------------------------- 1 | package interfaceDemo; 2 | 3 | public interface IPayable { 4 | void pay(); 5 | } 6 | -------------------------------------------------------------------------------- /ThirdWeek/interfaceDemo/src/interfaceDemo/IWorkable.java: -------------------------------------------------------------------------------- 1 | package interfaceDemo; 2 | 3 | public interface IWorkable { 4 | void work(); 5 | } 6 | -------------------------------------------------------------------------------- /ThirdWeek/interfaceDemo/src/interfaceDemo/Main.java: -------------------------------------------------------------------------------- 1 | package interfaceDemo; 2 | 3 | public class Main { 4 | 5 | public static void main(String[] args) { 6 | 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /ThirdWeek/interfaceDemo/src/interfaceDemo/OutsourceWorker.java: -------------------------------------------------------------------------------- 1 | package interfaceDemo; 2 | 3 | public class OutsourceWorker implements IWorkable{ 4 | 5 | @Override 6 | public void work() { 7 | 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /ThirdWeek/interfaceDemo/src/interfaceDemo/Robot.java: -------------------------------------------------------------------------------- 1 | package interfaceDemo; 2 | 3 | public class Robot implements IWorkable { 4 | 5 | @Override 6 | public void work() { 7 | 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /ThirdWeek/interfaceDemo/src/interfaceDemo/Worker.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/interfaceDemo/src/interfaceDemo/Worker.java -------------------------------------------------------------------------------- /ThirdWeek/interfaces/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ThirdWeek/interfaces/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /ThirdWeek/interfaces/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | interfaces 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /ThirdWeek/interfaces/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /ThirdWeek/interfaces/src/interfaces/CustomerManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/interfaces/src/interfaces/CustomerManager.java -------------------------------------------------------------------------------- /ThirdWeek/interfaces/src/interfaces/ICustomerDal.java: -------------------------------------------------------------------------------- 1 | package interfaces; 2 | 3 | public interface ICustomerDal { 4 | void Add(); 5 | } 6 | -------------------------------------------------------------------------------- /ThirdWeek/interfaces/src/interfaces/Main.java: -------------------------------------------------------------------------------- 1 | package interfaces; 2 | 3 | public class Main { 4 | 5 | public static void main(String[] args) { 6 | //polymorphism 7 | //ICustomerDal customerDal = new OracleCustomerDal(); 8 | 9 | CustomerManager customerManager = new CustomerManager(new OracleCustomerDal()); 10 | customerManager.add(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /ThirdWeek/interfaces/src/interfaces/MySqlCustomerDal.java: -------------------------------------------------------------------------------- 1 | package interfaces; 2 | 3 | public class MySqlCustomerDal implements ICustomerDal{ 4 | 5 | @Override 6 | public void Add() { 7 | System.out.println("My sql eklendi"); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /ThirdWeek/interfaces/src/interfaces/OracleCustomerDal.java: -------------------------------------------------------------------------------- 1 | package interfaces; 2 | 3 | public class OracleCustomerDal implements ICustomerDal { 4 | 5 | @Override 6 | public void Add() { 7 | System.out.println("Oracle eklendi"); 8 | } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /ThirdWeek/kodlamaioDemo/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ThirdWeek/kodlamaioDemo/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /ThirdWeek/kodlamaioDemo/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | kodlamaioDemo 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /ThirdWeek/kodlamaioDemo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /ThirdWeek/kodlamaioDemo/src/kodlamaioDemo/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/kodlamaioDemo/src/kodlamaioDemo/Main.java -------------------------------------------------------------------------------- /ThirdWeek/kodlamaioDemo/src/kodlamaioDemo/business/CourseManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/kodlamaioDemo/src/kodlamaioDemo/business/CourseManager.java -------------------------------------------------------------------------------- /ThirdWeek/kodlamaioDemo/src/kodlamaioDemo/business/CourseValidator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/kodlamaioDemo/src/kodlamaioDemo/business/CourseValidator.java -------------------------------------------------------------------------------- /ThirdWeek/kodlamaioDemo/src/kodlamaioDemo/dataAccess/HibernateProductDao.java: -------------------------------------------------------------------------------- 1 | package kodlamaioDemo.dataAccess; 2 | 3 | import kodlamaioDemo.entities.Course; 4 | 5 | public class HibernateProductDao implements ProductDao{ 6 | 7 | @Override 8 | public void add(Course course) { 9 | // TODO Auto-generated method stub 10 | System.out.println("Hibernate ile veri tabanina eklendi"); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /ThirdWeek/kodlamaioDemo/src/kodlamaioDemo/dataAccess/JdbcProductDao.java: -------------------------------------------------------------------------------- 1 | package kodlamaioDemo.dataAccess; 2 | 3 | import kodlamaioDemo.entities.Course; 4 | 5 | public class JdbcProductDao implements ProductDao { 6 | 7 | @Override 8 | public void add(Course course) { 9 | // TODO Auto-generated method stub 10 | System.out.println("JDBC ile veri tabanina eklendi"); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /ThirdWeek/kodlamaioDemo/src/kodlamaioDemo/dataAccess/ProductDao.java: -------------------------------------------------------------------------------- 1 | package kodlamaioDemo.dataAccess; 2 | 3 | import kodlamaioDemo.entities.Course; 4 | 5 | public interface ProductDao { 6 | void add(Course course); 7 | } 8 | -------------------------------------------------------------------------------- /ThirdWeek/kodlamaioDemo/src/kodlamaioDemo/entities/Course.java: -------------------------------------------------------------------------------- 1 | package kodlamaioDemo.entities; 2 | 3 | public class Course { 4 | private int id; 5 | private String courseName; 6 | private String courseKeywords; 7 | private String teacherName; 8 | private int price; 9 | private String category; 10 | private String coursePhoto; 11 | private String teacherPhoto; 12 | private int completionAmount; 13 | 14 | public Course() { 15 | super(); 16 | } 17 | 18 | public Course(int id, String courseName, String courseKeywords, String teacherName, int price, 19 | String category, String coursePhoto, String teacherPhoto, int completionAmount) { 20 | super(); 21 | this.id = id; 22 | this.courseName = courseName; 23 | this.courseKeywords = courseKeywords; 24 | this.teacherName = teacherName; 25 | this.price = price; 26 | this.category = category; 27 | this.coursePhoto = coursePhoto; 28 | this.teacherPhoto = teacherPhoto; 29 | this.completionAmount = completionAmount; 30 | } 31 | 32 | public int getId() { 33 | return id; 34 | } 35 | public void setId(int id) { 36 | this.id = id; 37 | } 38 | public String getCourseName() { 39 | return courseName; 40 | } 41 | public void setCourseName(String courseName) { 42 | this.courseName = courseName; 43 | } 44 | public String getCourseKeywords() { 45 | return courseKeywords; 46 | } 47 | public void setCourseKeywords(String courseKeywords) { 48 | this.courseKeywords = courseKeywords; 49 | } 50 | public String getTeacherName() { 51 | return teacherName; 52 | } 53 | public void setTeacherName(String teacherName) { 54 | this.teacherName = teacherName; 55 | } 56 | public int getPrice() { 57 | return price; 58 | } 59 | public void setPrice(int price) { 60 | this.price = price; 61 | } 62 | public String getCategory() { 63 | return category; 64 | } 65 | public void setCategory(String category) { 66 | this.category = category; 67 | } 68 | public String getCoursePhoto() { 69 | return coursePhoto; 70 | } 71 | public void setCoursePhoto(String coursePhoto) { 72 | this.coursePhoto = coursePhoto; 73 | } 74 | public String getTeacherPhoto() { 75 | return teacherPhoto; 76 | } 77 | public void setTeacherPhoto(String teacherPhoto) { 78 | this.teacherPhoto = teacherPhoto; 79 | } 80 | public int getCompletionAmount() { 81 | return completionAmount; 82 | } 83 | public void setCompletionAmount(int completionAmount) { 84 | this.completionAmount = completionAmount; 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /ThirdWeek/kodlamaioDemo/src/kodlamaioDemo/logging/DatabaseLogger.java: -------------------------------------------------------------------------------- 1 | package kodlamaioDemo.logging; 2 | 3 | public class DatabaseLogger implements Logger{ 4 | 5 | @Override 6 | public void log() { 7 | // TODO Auto-generated method stub 8 | System.out.println("Veritabanina loglandi "); 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /ThirdWeek/kodlamaioDemo/src/kodlamaioDemo/logging/Logger.java: -------------------------------------------------------------------------------- 1 | package kodlamaioDemo.logging; 2 | 3 | public interface Logger { 4 | void log(); 5 | } 6 | -------------------------------------------------------------------------------- /ThirdWeek/kodlamaioDemo/src/kodlamaioDemo/logging/MailLogger.java: -------------------------------------------------------------------------------- 1 | package kodlamaioDemo.logging; 2 | 3 | public class MailLogger implements Logger{ 4 | 5 | @Override 6 | public void log() { 7 | System.out.println("Mail gonderildi "); 8 | } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | oopWithNLayeredApp 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/bin/oopWithNLayeredApp/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/oopWithNLayeredApp/bin/oopWithNLayeredApp/Main.class -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/bin/oopWithNLayeredApp/business/ProductManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/oopWithNLayeredApp/bin/oopWithNLayeredApp/business/ProductManager.class -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/bin/oopWithNLayeredApp/core/logging/DatabaseLogger.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/oopWithNLayeredApp/bin/oopWithNLayeredApp/core/logging/DatabaseLogger.class -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/bin/oopWithNLayeredApp/core/logging/FileLogger.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/oopWithNLayeredApp/bin/oopWithNLayeredApp/core/logging/FileLogger.class -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/bin/oopWithNLayeredApp/core/logging/Logger.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/oopWithNLayeredApp/bin/oopWithNLayeredApp/core/logging/Logger.class -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/bin/oopWithNLayeredApp/core/logging/MailLogger.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/oopWithNLayeredApp/bin/oopWithNLayeredApp/core/logging/MailLogger.class -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/bin/oopWithNLayeredApp/dataAccess/HibernateProductDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/oopWithNLayeredApp/bin/oopWithNLayeredApp/dataAccess/HibernateProductDao.class -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/bin/oopWithNLayeredApp/dataAccess/JdbcProductDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/oopWithNLayeredApp/bin/oopWithNLayeredApp/dataAccess/JdbcProductDao.class -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/bin/oopWithNLayeredApp/dataAccess/ProductDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/oopWithNLayeredApp/bin/oopWithNLayeredApp/dataAccess/ProductDao.class -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/bin/oopWithNLayeredApp/entities/Product.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/oopWithNLayeredApp/bin/oopWithNLayeredApp/entities/Product.class -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/src/oopWithNLayeredApp/Main.java: -------------------------------------------------------------------------------- 1 | package oopWithNLayeredApp; 2 | 3 | import oopWithNLayeredApp.business.ProductManager; 4 | import oopWithNLayeredApp.core.logging.DatabaseLogger; 5 | import oopWithNLayeredApp.core.logging.FileLogger; 6 | import oopWithNLayeredApp.core.logging.Logger; 7 | import oopWithNLayeredApp.dataAccess.HibernateProductDao; 8 | import oopWithNLayeredApp.dataAccess.JdbcProductDao; 9 | import oopWithNLayeredApp.entities.Product; 10 | 11 | public class Main { 12 | public static void main(String[] args) throws Exception { 13 | Product product1 = new Product(1, "Iphone Xr", 10000); 14 | 15 | Logger[] loggers = {new DatabaseLogger(), new FileLogger()}; 16 | 17 | ProductManager productManager = new ProductManager(new HibernateProductDao(),loggers); 18 | productManager.add(product1); 19 | } 20 | } -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/src/oopWithNLayeredApp/business/ProductManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/oopWithNLayeredApp/src/oopWithNLayeredApp/business/ProductManager.java -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/src/oopWithNLayeredApp/core/logging/DatabaseLogger.java: -------------------------------------------------------------------------------- 1 | package oopWithNLayeredApp.core.logging; 2 | 3 | public class DatabaseLogger implements Logger{ 4 | @Override 5 | public void log(String data) { 6 | System.out.println("Veritabanina loglandi : " + data); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/src/oopWithNLayeredApp/core/logging/FileLogger.java: -------------------------------------------------------------------------------- 1 | package oopWithNLayeredApp.core.logging; 2 | 3 | public class FileLogger implements Logger{ 4 | 5 | @Override 6 | public void log(String data) { 7 | System.out.println("Dosyaya loglandi : " + data); 8 | } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/src/oopWithNLayeredApp/core/logging/Logger.java: -------------------------------------------------------------------------------- 1 | package oopWithNLayeredApp.core.logging; 2 | 3 | public interface Logger { 4 | void log(String data); 5 | } 6 | -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/src/oopWithNLayeredApp/core/logging/MailLogger.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/oopWithNLayeredApp/src/oopWithNLayeredApp/core/logging/MailLogger.java -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/src/oopWithNLayeredApp/dataAccess/HibernateProductDao.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/oopWithNLayeredApp/src/oopWithNLayeredApp/dataAccess/HibernateProductDao.java -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/src/oopWithNLayeredApp/dataAccess/JdbcProductDao.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/oopWithNLayeredApp/src/oopWithNLayeredApp/dataAccess/JdbcProductDao.java -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/src/oopWithNLayeredApp/dataAccess/ProductDao.java: -------------------------------------------------------------------------------- 1 | package oopWithNLayeredApp.dataAccess; 2 | 3 | import oopWithNLayeredApp.entities.Product; 4 | 5 | public interface ProductDao { 6 | void add(Product product); 7 | } 8 | -------------------------------------------------------------------------------- /ThirdWeek/oopWithNLayeredApp/src/oopWithNLayeredApp/entities/Product.java: -------------------------------------------------------------------------------- 1 | package oopWithNLayeredApp.entities; 2 | 3 | public class Product { 4 | private int id; 5 | private String name; 6 | private double unitPrice; 7 | 8 | public Product() { 9 | //super(); silinedebilir 10 | } 11 | 12 | public Product(int id, String name, double unitPrice) { 13 | //super(); silinedebilir 14 | this.id = id; 15 | this.name = name; 16 | this.unitPrice = unitPrice; 17 | } 18 | 19 | public int getId() { 20 | return id; 21 | } 22 | 23 | public void setId(int id) { 24 | this.id = id; 25 | } 26 | 27 | public String getName() { 28 | return name; 29 | } 30 | 31 | public void setName(String name) { 32 | this.name = name; 33 | } 34 | 35 | public double getUnitPrice() { 36 | return unitPrice; 37 | } 38 | 39 | public void setUnitPrice(double unitPrice) { 40 | this.unitPrice = unitPrice; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /ThirdWeek/overriding/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ThirdWeek/overriding/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /ThirdWeek/overriding/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | overriding 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /ThirdWeek/overriding/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /ThirdWeek/overriding/src/overriding/BaseKrediManager.java: -------------------------------------------------------------------------------- 1 | package overriding; 2 | 3 | public class BaseKrediManager { 4 | public double hesapla(double tutar) { 5 | return tutar * 1.18 ; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /ThirdWeek/overriding/src/overriding/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/overriding/src/overriding/Main.java -------------------------------------------------------------------------------- /ThirdWeek/overriding/src/overriding/OgrenciKrediManager.java: -------------------------------------------------------------------------------- 1 | package overriding; 2 | 3 | public class OgrenciKrediManager extends BaseKrediManager{ 4 | public double hesapla(double tutar) { 5 | return tutar * 1.10 ; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /ThirdWeek/overriding/src/overriding/OgretmenKrediManager.java: -------------------------------------------------------------------------------- 1 | package overriding; 2 | 3 | public class OgretmenKrediManager extends BaseKrediManager{ 4 | public double hesapla(double tutar) { 5 | return tutar * 1.18 ; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /ThirdWeek/overriding/src/overriding/TarımKrediManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/overriding/src/overriding/TarımKrediManager.java -------------------------------------------------------------------------------- /ThirdWeek/sql-example-6.hw.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/sql-example-6.hw.xlsx -------------------------------------------------------------------------------- /ThirdWeek/sql-temel.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/sql-temel.xlsx -------------------------------------------------------------------------------- /ThirdWeek/staticDemo/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ThirdWeek/staticDemo/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /ThirdWeek/staticDemo/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | staticDemo 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /ThirdWeek/staticDemo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /ThirdWeek/staticDemo/src/staticDemo/Main.java: -------------------------------------------------------------------------------- 1 | package staticDemo; 2 | 3 | public class Main { 4 | 5 | public static void main(String[] args) { 6 | ProductManager manager = new ProductManager(); 7 | Product product = new Product(); 8 | product.price = 10; 9 | product.name= "Ekmek"; 10 | product.id = 1; 11 | manager.add(product); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ThirdWeek/staticDemo/src/staticDemo/Product.java: -------------------------------------------------------------------------------- 1 | package staticDemo; 2 | 3 | public class Product { 4 | int id; 5 | String name; 6 | double price; 7 | } 8 | -------------------------------------------------------------------------------- /ThirdWeek/staticDemo/src/staticDemo/ProductManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fatimenurcelik/Java-Kodlama.io-2022/2dda891586d4113451f4d82ee8d1a458d25270c0/ThirdWeek/staticDemo/src/staticDemo/ProductManager.java -------------------------------------------------------------------------------- /ThirdWeek/staticDemo/src/staticDemo/ProductValidator.java: -------------------------------------------------------------------------------- 1 | package staticDemo; 2 | 3 | public class ProductValidator { 4 | public static boolean isValid (Product product) { 5 | if(product.price > 0 && !product.name.isEmpty()) { 6 | return true; 7 | }else { 8 | return false; 9 | } 10 | } 11 | } 12 | --------------------------------------------------------------------------------