Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package allatkorhaz;
- import java.io.BufferedReader;
- import java.io.BufferedWriter;
- import java.io.FileWriter;
- import java.io.IOException;
- import java.io.PrintWriter;
- import java.util.Scanner;
- /**
- *
- * @author Áron
- */
- public class Admin {
- private String nev;
- private String username;
- private String jelszo;
- public String getJelszo() {
- return jelszo;
- }
- public void setJelszo(String jelszo) {
- this.jelszo = jelszo;
- }
- public String getNev() {
- return nev;
- }
- public void setNev(String nev) {
- this.nev = nev;
- }
- public String getUsername() {
- return username;
- }
- public void setUsername(String username) {
- this.username = username;
- }
- boolean Bejelentkezes(String un, String pw){
- boolean isLogin=false;
- return isLogin;
- }
- public void felhasznaloTorlese(){
- }
- public void orvosFelvitele(){
- }
- public void orvosModositasa(){
- }
- public void orvosTorlese(){
- }
- public void szolgaltatasFelvitele() throws IOException{
- String vizsgalatNev="";
- Scanner sc = new Scanner(System.in);
- System.out.println("Vizsgálat neve:");
- vizsgalatNev = sc.next();
- System.out.println("Vizsgálat ara:");
- String vizsgalatAr = sc.next();
- System.out.println("Vizsgálat leirasa:");
- String vizsgalatLeirasa = sc.next();
- try(PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("vizsgalatok.txt",true)))){
- out.println("vizsgalat;"+vizsgalatNev+";"+vizsgalatAr+";"+vizsgalatLeirasa);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement