HarrJ

B8 Day 4 more prints

Sep 15th, 2022
1,036
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.66 KB | None | 0 0
  1. package mattroseb8wk1;
  2.  
  3. public class Day05A {
  4.    
  5.     public static void main(String[] args) {
  6.         String txt1 = "Carrot";
  7.         String txt2 = "Repolyo";
  8.        
  9.        
  10.         System.out.println("----- version 1 -----");
  11.         //pag mahaba yung i print ninyo wala masama mag maraming print
  12.         System.out.print("The law of the instrument, law of the hammer, ");
  13.         System.out.print("Maslow's hammer (or gavel), or golden hammer is ");
  14.         System.out.print("a cognitive bias that involves an over-reliance on ");
  15.         System.out.print("a familiar tool. Abraham Maslow wrote in 1966, \"If ");
  16.         System.out.print("the only tool you have is a hammer, it is tempting ");
  17.         System.out.println("to treat everything as if it were a nail\" ");
  18.        
  19.         System.out.println("----- version 2 -----");        
  20.         System.out.println("The law of the instrument, law of the hammer, "
  21.                 + "Maslow's hammer (or gavel), or golden hammer is "
  22.                 + "a cognitive bias that involves an over-reliance on "
  23.                 + "a familiar tool. Abraham Maslow wrote in 1966, \"If "
  24.                 + "the only tool you have is a hammer, it is tempting "
  25.                 + "to treat everything as if it were a nail\" ");
  26.        
  27.         System.out.println("----- version 3 -----");
  28.         System.out.println("The law of the instrument, law of the hammer, Maslow's hammer (or gavel), or golden hammer is a cognitive bias that involves an over-reliance on a familiar tool. Abraham Maslow wrote in 1966, \"If the only tool you have is a hammer, it is tempting to treat everything as if it were a nail\" ");
  29.     }
  30. }
  31.  
Advertisement
Add Comment
Please, Sign In to add comment