Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //zad 1 i 2
- package tema_idqnajsi;
- import java.io.*;
- import java.util.Scanner;
- public class ChronicBackpain1_2 {
- public static void main(String[] args) throws Exception {
- Scanner in = new Scanner(System.in);
- PrintStream penisBalls = new PrintStream("egn.txt");
- String bigOunce1 = null;
- String bigOunce2 = null;
- String bigOunce3 = null;
- String bigOunce4 = null;
- for(int i=0;i<10;i++)
- {
- bigOunce1=in.next();
- bigOunce2=in.next();
- bigOunce3=in.next();
- bigOunce4=in.next();
- penisBalls.print(bigOunce1);
- penisBalls.print(" ");
- penisBalls.print(bigOunce2);
- penisBalls.print(" ");
- penisBalls.print(bigOunce3);
- penisBalls.print(" ");
- penisBalls.print(bigOunce4);
- penisBalls.println("");
- }
- penisBalls.close();
- File egene = new File("egn.txt");
- Scanner in2 = new Scanner(egene);
- PrintStream ballsPenis = new PrintStream("egn2.txt");
- for(int i=0;i<10;i++)
- {
- bigOunce1=in2.next();
- bigOunce2=in2.next();
- bigOunce3=in2.next();
- bigOunce4=in2.next();
- ballsPenis.print(bigOunce1);
- ballsPenis.print(" ");
- ballsPenis.print(bigOunce2);
- ballsPenis.print(" ");
- ballsPenis.print(bigOunce3);
- ballsPenis.print(" ");
- ballsPenis.print(bigOunce4);
- ballsPenis.println("");
- }
- ballsPenis.close();
- in2.close();
- in.close();
- }
- ____________________________________________________________________________________________
- //zad 3
- package tema_idqnajsi;
- import java.util.Scanner;
- import java.io.*;
- public class ChronicBackpain3 {
- public static void main(String[] args) throws Exception {
- Scanner in = new Scanner(System.in);
- File flel = new File("booc.txt");
- Scanner in2 = new Scanner(flel);
- int x = in.nextInt();
- String kfc="ISBN_"+x;
- String macDondal = null;
- Boolean sooubway = false;
- while(in2.hasNextLine())
- {
- macDondal = in2.nextLine();
- if(macDondal.contains(kfc))
- {
- System.out.println("ima go");
- sooubway = true;
- break;
- }
- }
- if(sooubway == false)
- {
- System.out.println("nqma go");
- }
- in.close();
- in2.close();
- }
- }
- ________________________________________________________________________________________
- //zad 4
- package tema_idqnajsi;
- import java.util.Scanner;
- import java.io.*;
- public class ChronicBackpain4 {
- public static void main(String[] args) throws Exception {
- Scanner in = new Scanner(System.in);
- int x = in.nextInt();
- int y = Integer.MAX_VALUE;
- while(y>x)
- {
- y = in.nextInt();
- }
- File flel = new File("4isll.txt");
- PrintStream bigChungus = new PrintStream(flel);
- Scanner in2 = new Scanner(flel);
- String bigNigga = null;
- for(int i=0;i<x;i++)
- {
- bigNigga = in.next();
- bigChungus.println(bigNigga);
- }
- for(int i=0;i<y;i++)
- {
- System.out.println(in2.next());
- }
- in.close();
- in2.close();
- bigChungus.close();
- }
- }
- __________________________________________________________________________________________
- //zad 5
- package tema_idqnajsi;
- import java.io.File;
- import java.io.PrintStream;
- import java.util.Scanner;
- public class ChronicBackpain5 {
- public static void main(String[] args) throws Exception {
- Scanner in = new Scanner(System.in);
- int x = in.nextInt();
- int anime=0;
- int random=0;
- int animecute=0;
- double hentai=0;
- File flel = new File("ocencc.txt");
- File flel2 = new File("u4enicc.txt");
- PrintStream phallusEnlargement = new PrintStream(flel2);
- Scanner in2 = new Scanner(flel);
- String bigNiggaSoakingDamage1 = null;
- String bigNiggaSoakingDamage2 = null;
- String bigNiggaSoakingDamage3 = null;
- for(int i=0;i<x;i++)
- {
- bigNiggaSoakingDamage1 = in2.next();
- bigNiggaSoakingDamage2 = in2.next();
- bigNiggaSoakingDamage3 = in2.next();
- anime = in2.nextInt();
- random = in2.nextInt();
- animecute = in2.nextInt();
- hentai = (anime+random+animecute)/3;
- phallusEnlargement.print(bigNiggaSoakingDamage1);
- phallusEnlargement.print(" ");
- phallusEnlargement.print(bigNiggaSoakingDamage2);
- phallusEnlargement.print(" ");
- phallusEnlargement.print(bigNiggaSoakingDamage3);
- phallusEnlargement.print(" ");
- phallusEnlargement.print(hentai);
- phallusEnlargement.println("");
- }
- in2.close();
- phallusEnlargement.close();
- in.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement