Jump to content

pg94

Active Members
  • Posts

    40
  • Joined

  • Last visited

  • Days Won

    1

Profile Information

  • Gender
    Male
  • Location
    Knoxville,TN
  • Interests
    Cyber Security, Rock Climbing, Learning

Recent Profile Visitors

1,468 profile views

pg94's Achievements

Newbie

Newbie (1/14)

  1. Just curious is there any legality issues using it just to watch whats going on a network. All I want to do is see what information is coming in and out of my network. I know you can use wireshark but what makes the pineapple different? Also how user friendly is it?
  2. So its come time for me to get a new laptop. I don't know if I should get a 13" or 15", retina or no retina, maxed out specs or not. Heres what I aspire to use it for. Programming ( Java, C++, Swift, ect..) I plan on working in the security field, network and mobile. I want to be able to run programs and such to create algorithms for cryptology. Occasionally run VM's If I was to get a 13" I would also get an external monitor to use as well. Since I am in college I tend to travel a lot between Georgia and Tennessee. So portability around campus and travel is important. I only mention this because if anyone could tell me if there is a big difference in the 13" and 15" retina weight! Thanks!
  3. package javaapplication1; import java.util.Scanner; public class JavaApplication1 { public static void main(String[] args) { // var String monthString = null; int month = -1; Scanner in = new Scanner(System.in); System.out.print("What month is it? (1-12) "); month = in.nextInt(); String suffix = null; int day = -1; Scanner iu = new Scanner(System.in); System.out.print("What day is it? (1-31) "); day = in.nextInt(); String yearString = null; int year = -1; Scanner it = new Scanner(System.in); System.out.print("What year is it? (2000-2015) "); year = in.nextInt(); switch (month) { case 1: monthString = "January"; break; case 2: monthString = "February"; break; case 3: monthString = "March"; break; case 4: monthString = "April"; break; case 5: monthString = "May"; break; case 6: monthString = "June"; break; case 7: monthString = "July"; break; case 8: monthString = "August"; break; case 9: monthString = "September"; break; case 10: monthString = "October"; break; case 11: monthString = "November"; break; case 12: monthString = "December"; break; default: monthString = "Invalid month"; break; } switch (day) { case 1: case 21: case 31: suffix = "st"; break; case 2: case 22: suffix = "nd"; break; case 3: case 23: suffix = "rd"; break; default: suffix = "th"; break; } switch(year) { case 2015: yearString = "2015"; break; case 2014: yearString = "2014"; break; case 2013: yearString = "2013"; break; case 2012: yearString = "2012"; break; case 2011: yearString = "2011"; break; case 2010: yearString = "2010"; break; case 2009: yearString = "2009"; break; case 2008: yearString = "2008"; break; case 2007: yearString = "2007"; break; case 2006: yearString = "2006"; break; case 2005: yearString = "2005"; break; case 2004: yearString = "2004"; break; case 2003: yearString = "2003"; break; case 2002: yearString = "2002"; break; case 2001: yearString = "2001"; break; case 2000: yearString = "2000"; break; default: System.out.print("Invalid input, try again."); } System.out.println( monthString + day + suffix + year); } } SWWEEEETTT, I give you the ugliest code but yet functioning! Thanks for the help! Definitely excited to learn to code!
  4. package javaapplication1; import java.util.Scanner; public class JavaApplication1 { public static void main(String[] args) { // var String monthString = null; int month = -1; Scanner in = new Scanner(System.in); System.out.print("What month is it? (1-12) "); month = in.nextInt(); switch (month) { case 1: monthString = "January"; break; case 2: monthString = "February"; break; case 3: monthString = "March"; break; case 4: monthString = "April"; break; case 5: monthString = "May"; break; case 6: monthString = "June"; break; case 7: monthString = "July"; break; case 8: monthString = "August"; break; case 9: monthString = "September"; break; case 10: monthString = "October"; break; case 11: monthString = "November"; break; case 12: monthString = "December"; break; default: monthString = "Invalid month"; break; } // Print the month System.out.println(" " + monthString); } public static void daymain(String[] args) { String suffix = null; int day = -1; Scanner in = new Scanner(System.in); System.out.print("What day is it? (1-31) "); day = in.nextInt(); switch (day) { case 1: case 21: case 31: suffix = "st"; break; case 2: case 22: suffix = "nd"; break; case 3: case 23: suffix = "rd"; break; default: suffix = "th"; break; } System.out.println( day + suffix); } public static void yearmain(String[] args) { String suffix = null; int year = -1; Scanner in = new Scanner(System.in); System.out.print("What year is it? (2000-2015) "); year = in.nextInt(); switch (year) { case 2015: System.out.print("2015"); break; case 2014: System.out.print("2014"); break; case 2013: System.out.print("2013"); break; case 2012: System.out.print("2012"); break; case 2011: System.out.print("2011"); break; case 2010: System.out.print("2010"); break; case 2009: System.out.print("2009"); break; case 2008: System.out.print("2008"); break; case 2007: System.out.print("2007"); break; case 2006: System.out.print("2006"); break; case 2005: System.out.print("2005"); break; case 2004: System.out.print("2004"); break; case 2003: System.out.print("2003"); break; case 2002: System.out.print("2002"); break; case 2001: System.out.print("2001"); break; case 2000: System.out.print("2000"); break; default: System.out.print("Invalid Year, Try Again."); } So I know there is probably an easier way to go about the years but I found copying and pasting to be easiest for my skill level. ONLY problem is how would I combine all of the public static void groups together to get it to run as on continuous program? So it would ask for the month, day, year, then at the end spit in out all together in MM/DD/YY order?
  5. I'm not really proficient in any other languages, I'm just starting to learn about it and its a pretty fast moving course. I greatly appreciate the help everyone! Im going to try and complete the code tonight or tomorrow and will post it!
  6. So I'm in an Intro to java class and I'm struggling to write a program. Basically I need to write a program that when given 09/26/2012 or ANY DATE (1-12/1-31/2000-2015) gives an output of September 26th, 2012. This is what I've done so far for the months. I'm trying to use the switch method. But I don't know how to ask for user input and make it into a variable so that it would became a month. package javaapplication1; public class JavaApplication1 { public static void main(String[] args) { //Scanner sc = new scanner(System.in); System.out.println("Day of the month?"); { int month == ; String monthString; switch (month) { case 1: monthString = "January"; break; case 2: monthString = "February"; break; case 3: monthString = "March"; break; case 4: monthString = "April"; break; case 5: monthString = "May"; break; case 6: monthString = "June"; break; case 7: monthString = "July"; break; case 8: monthString = "August"; break; case 9: monthString = "September"; break; case 10: monthString = "October"; break; case 11: monthString = "November"; break; case 12: monthString = "December"; break; default: monthString = "Invalid month"; break; } System.out.println(monthString); } }
  7. So I have a 15 inch Late-2011 MBP i5. I'm looking to put in a 250 GB SSD into it. I only have about 170 GB of memory being used on my mac, half of it is files that need to be deleted. My question is should I replace the CD drive and use that space to put in the SSD or remove the org. HD and put in a SSD. I have a 500 GB external drive I could store my files on a keep stuff on my mac to a min. I'm not so good with hardware so someone who is, I would appreciate the advice!
  8. Angels Envy if you're into bourbon
  9. pg94

    Help?

    From my understanding I think its like a key. If you don't have the most up to date version the university servers "quarantine" you and you're not allowed internet access unless you're updating norton. I feel that there may be a way to by pass it but from my understanding the schools system is very solid.
  10. pg94

    Help?

    Well just to be safe I switched to my other computer, I'll have Apple look at it. I'd rather pay them to look at it then have something burn my computer out and have to buy a new one. Thanks for the help everyone!
  11. pg94

    Help?

    I have to keep Symantec to be able to use my university wifi. I've done all of this except removing Symantec and my Mac still is going nuts. I think I'll cave in and take it into the Apple store. Anyone want to give a rough estimate on how much this may cost?
  12. pg94

    Help?

    This has been going on for awhile now. Probably about 2 months
  13. pg94

    Help?

    I just updated flash, didn't know it was out of date but I don't think that could have been causing my mac and fans to go crazy. On a side note, I don't have a whole bunch of important documents and programs on my mac, should I move everything I want onto an external drive and re-install the OS?
×
×
  • Create New...