Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

DrMacintosh

Member
  • Content Count

    10,656
  • Joined

  • Last visited

Awards


This user doesn't have any awards

About DrMacintosh

  • Title
    Fanatic
  • Birthday 1999-09-22

Contact Methods

  • Discord
    DrMacintosh#5151
  • Heatware
    Would rather use eBay
  • Origin
    DrMacintosh01
  • Reddit
    u/DrMacintosh01
  • Star Citizen
    I think this game is a scam
  • Steam
    DrMacintosh
  • UPlay
    DrMacintosh

Profile Information

  • Gender
    Male
  • Location
    The Great State of California
  • Interests
    Star Trek, KanColle, Apple, PCs, World of Warships
  • Occupation
    Student

System

  • CPU
    R5 2600
  • Motherboard
    ASRock B450M Pro4
  • RAM
    Ballistix Sport 16GB (4 x 4GB) 2666
  • GPU
    Sapphire Nitro+ RX 580 4GB
  • Case
    Apple PowerMac G5
  • Storage
    480GB PNY CS1311 SSD, WD 2TB Caviar Green
  • PSU
    Corsair CX 600M 80+ Bronze
  • Display(s)
    Dell UZ2215H 21.5" 1080p, ViewSonic VX2450wm-LED 23.6" 1080p, Samsung SyncMaster 940BX 19" 1024p
  • Cooling
    Wraith Prism
  • Keyboard
    Logitech G610 Orion Cherry MX Brown
  • Mouse
    Logitec G303
  • Sound
    Audio Techinca ATH-M50x
  • Operating System
    Windows 10
  • PCPartPicker URL

Recent Profile Visitors

89,782 profile views

Single Status Update

See all updates by DrMacintosh

  1. My Java class has these labs due on Saturdays and man I can envision so many people failing this course if they aren't super dedicated. Here is an example of one of our labs just a few weeks into the semester. 

     

    Prompt: 

    1907407808_ScreenShot2019-02-16at9_18_37AM.thumb.png.832b69cb5dada81f6e80d82830fde532.png

    import java.util.Scanner;
    
    public class TextMsgExpander {
       public static void main(String[] args) {
          /* Type your code here. */
          Scanner scnr = new Scanner(System.in);
          String userInput;
          
          System.out.println("Enter text:");
          
          userInput = scnr.nextLine();
          
          System.out.println("You entered: " + userInput);
          System.out.println();
          
          if (userInput.indexOf("BFF") != -1) {
             userInput = userInput.replace("BFF", "best friend forever");
             System.out.println("Replaced " +"\"BFF\"" + " with " + "\"best friend forever\"" + ".");
          }
          if (userInput.indexOf("IDK") != -1) {
             userInput = userInput.replace("IDK", "I don't know");
             System.out.println("Replaced " +"\"IDK\"" + " with " + "\"I don't know\"" + ".");
          }
          if (userInput.indexOf("JK") != -1) {
             userInput = userInput.replace("JK", "just kidding");
             System.out.println("Replaced " +"\"JK\"" + " with " + "\"just kidding\"" + ".");
          }
          if (userInput.indexOf("TMI") != -1) {
             userInput = userInput.replace("TMI", "too much information");
             System.out.println("Replaced " +"\"TMI\"" + " with " + "\"too much information\"" + ".");
          }
          if (userInput.indexOf("TTYL") != -1) {
             userInput = userInput.replace("TTYL", "talk to you later");
             System.out.println("Replaced " +"\"TTYL\"" + " with " + "\"talk to you later\"" + ".");
          }
          
          System.out.println();
          System.out.println("Expanded: " + userInput);
       }
    }

    It's actually not too difficult if you read the material and can think like a computer, but the professor has already said that most of the class isn't even doing the participation activities which anyone with very little skill could do in a few minutes. 

    1. Show previous comments  6 more
    2. DrMacintosh

      DrMacintosh

      That will probably be my next language. I need to take 1 object oriented programing course per semester.

    3. Sauron

      Sauron

      oof, OOP is out of fashion... all the cool kids do functional! 😉

    4. ARikozuM

      ARikozuM

      Functional is one helluva drug. 

       

      ...

       

      I'll leave now.

    5. Show next comments  3 more
×