Phils Path to Learning Java

Discussion in 'Programming General' started by xPhilip, Nov 6, 2014.

Phils Path to Learning Java
  1. Unread #1 - Nov 6, 2014 at 3:22 PM
  2. xPhilip
    Joined:
    Jul 15, 2010
    Posts:
    1,369
    Referrals:
    3
    Sythe Gold:
    0
    Two Factor Authentication User SytheSteamer Halloween 2014 (2) Christmas 2014 Extreme Homosex Potamus

    xPhilip Guru
    $5 USD Donor New

    Phils Path to Learning Java

    .,,,,,,
     
  3. Unread #2 - Nov 6, 2014 at 3:25 PM
  4. 70i
    Joined:
    Jan 11, 2014
    Posts:
    462
    Referrals:
    0
    Sythe Gold:
    174

    70i Forum Addict
    Banned

    Phils Path to Learning Java

    Good luck. The best way to learn is by practice.
     
  5. Unread #3 - Nov 6, 2014 at 3:26 PM
  6. xPhilip
    Joined:
    Jul 15, 2010
    Posts:
    1,369
    Referrals:
    3
    Sythe Gold:
    0
    Two Factor Authentication User SytheSteamer Halloween 2014 (2) Christmas 2014 Extreme Homosex Potamus

    xPhilip Guru
    $5 USD Donor New

    Phils Path to Learning Java

    Thanks for the support man!

    Currently still editing in Modules since I posted this when I am currently on Mod 7, trying to get the thread up-to-date :)
     
  7. Unread #4 - Nov 6, 2014 at 3:40 PM
  8. CompileTime
    Joined:
    Apr 16, 2014
    Posts:
    451
    Referrals:
    0
    Sythe Gold:
    3

    CompileTime Professional desktop/web application developer.
    Banned

    Phils Path to Learning Java

    Hey, glad to see someone else is taking an interest in Java :)
    If you ever get stuck, feel free to ask me for help. (I'm a fairly experienced Java programmer.)

    Also, ewwwwwwww. BlueJ.
     
  9. Unread #5 - Nov 6, 2014 at 4:07 PM
  10. xPhilip
    Joined:
    Jul 15, 2010
    Posts:
    1,369
    Referrals:
    3
    Sythe Gold:
    0
    Two Factor Authentication User SytheSteamer Halloween 2014 (2) Christmas 2014 Extreme Homosex Potamus

    xPhilip Guru
    $5 USD Donor New

    Phils Path to Learning Java

    Thanks man, if I ever get stuck I'll shoot you a PM.
     
  11. Unread #6 - Nov 6, 2014 at 5:41 PM
  12. kmjt
    Joined:
    Aug 21, 2009
    Posts:
    14,450
    Referrals:
    8
    Sythe Gold:
    449

    kmjt -.- The nocturnal life chose me -.-
    Banned

    Phils Path to Learning Java

    Good luck. Although i'm not so sure about the blue jay IDE :S Unless your course requires it you should look into an IDE like Eclipse.
     
  13. Unread #7 - Nov 6, 2014 at 6:03 PM
  14. xPhilip
    Joined:
    Jul 15, 2010
    Posts:
    1,369
    Referrals:
    3
    Sythe Gold:
    0
    Two Factor Authentication User SytheSteamer Halloween 2014 (2) Christmas 2014 Extreme Homosex Potamus

    xPhilip Guru
    $5 USD Donor New

    Phils Path to Learning Java

    I plan on switching over soon, just wanted it at the start because most of the examples and explanations were in BlueJ so having it made it a lot easier to understand.
     
  15. Unread #8 - Nov 7, 2014 at 7:15 AM
  16. xPhilip
    Joined:
    Jul 15, 2010
    Posts:
    1,369
    Referrals:
    3
    Sythe Gold:
    0
    Two Factor Authentication User SytheSteamer Halloween 2014 (2) Christmas 2014 Extreme Homosex Potamus

    xPhilip Guru
    $5 USD Donor New

    Phils Path to Learning Java

    Got thread up-to-date.

    Started Static methods last night, hoping to finish 7.01 assigemt tonight
     
  17. Unread #9 - Nov 8, 2014 at 6:29 AM
  18. Jeremy kyle
    Joined:
    Oct 30, 2014
    Posts:
    278
    Referrals:
    0
    Sythe Gold:
    0

    Jeremy kyle Forum Addict
    Banned

    Phils Path to Learning Java

    luck dood, looks good
     
  19. Unread #10 - Nov 8, 2014 at 8:42 AM
  20. xPhilip
    Joined:
    Jul 15, 2010
    Posts:
    1,369
    Referrals:
    3
    Sythe Gold:
    0
    Two Factor Authentication User SytheSteamer Halloween 2014 (2) Christmas 2014 Extreme Homosex Potamus

    xPhilip Guru
    $5 USD Donor New

    Phils Path to Learning Java

    Thanks man
     
  21. Unread #11 - Nov 8, 2014 at 12:15 PM
  22. xPhilip
    Joined:
    Jul 15, 2010
    Posts:
    1,369
    Referrals:
    3
    Sythe Gold:
    0
    Two Factor Authentication User SytheSteamer Halloween 2014 (2) Christmas 2014 Extreme Homosex Potamus

    xPhilip Guru
    $5 USD Donor New

    Phils Path to Learning Java

    Finished 7.01

    7.01 - Java's Math Class - Assignment: Write a program to calculate the (x, y) coordinates of points on a circle of radius 1.0. -
    Code:
    public class PointsOnACircleV1
    {
       public static void main(String[ ] args)
       {
           double radius = 1.0;
           double x1 = 1.00;
           double y1 = 0.00;
           double y2 = 0.00;
           
           System.out.println("  Points on a Circle of Radius 1.0");
           System.out.printf("%5s %7s %11s %7s \n", "x1", "y1","x1","y2");
           System.out.println(" ----------------------------------");
           
           for (int i = 0; i < 21; i++)
           {
              System.out.printf("%6.2f %7.2f %11.2f %6.2f \n", x1, y1, x1, y2);
              x1 -= .1;
              
              y1 = radius - Math.pow(x1,2);
              y1 = Math.sqrt(y1);
              
              y2 = radius - Math.pow(x1,2);
              y2 = -(Math.sqrt(y2));
            }
        } 
    }
    
    Output:

    [​IMG]
     
  23. Unread #12 - Nov 8, 2014 at 3:39 PM
  24. Swaze
    Joined:
    Oct 12, 2014
    Posts:
    2,018
    Referrals:
    1
    Sythe Gold:
    200

    Swaze Grand Master

    Phils Path to Learning Java

    I've tried learning Java to make my own RSPS, failed a few times.

    Anyways, I'm looking forward to your progress. Good luck.
     
  25. Unread #13 - Nov 9, 2014 at 12:37 AM
  26. xPhilip
    Joined:
    Jul 15, 2010
    Posts:
    1,369
    Referrals:
    3
    Sythe Gold:
    0
    Two Factor Authentication User SytheSteamer Halloween 2014 (2) Christmas 2014 Extreme Homosex Potamus

    xPhilip Guru
    $5 USD Donor New

    Phils Path to Learning Java

    Thanks man
     
  27. Unread #14 - Nov 10, 2014 at 1:04 PM
  28. xPhilip
    Joined:
    Jul 15, 2010
    Posts:
    1,369
    Referrals:
    3
    Sythe Gold:
    0
    Two Factor Authentication User SytheSteamer Halloween 2014 (2) Christmas 2014 Extreme Homosex Potamus

    xPhilip Guru
    $5 USD Donor New

    Phils Path to Learning Java

    Finished 7.02

    7.02 - Defining New Static Methods Part one - Assignment: A program to convert to and from English and metric units of measurement. -
    Code:
    public class MeasurementConverterV2
    {
        //Purpose of program
        public static void printPurpose( )  //notice that this method is void, nothing is returned
        {
            System.out.println("This program converts to and from");
            System.out.println("English and metric units of measure.");
            System.out.println("=====================================");
        }
            
        //convert feet to miles
        //the ft parameter receives the value of the feet argument passed from main method. 
        public static double convertFeetToMiles(double ft)
        {
            return ft / 5280;      
        } 
        
        //convert miles to feet
        public static double convertMilesToFeet(double mi)
        {
            return mi * 5280;      
        } 
        
        //convert miles to kilometers
        public static double convertMilesToKilometers(double mi)
        {
           return mi * 1.60934; //return statement calculate kilometers goes here      
        } 
        
        //convert kilometers to miles
        public static double convertKilometersToMiles(double km)
        {
            return km * 0.621371; //return statement to calculate miles goes here     
        } 
        
        //convert pounds to kilograms
        public static double convertPoundsToKilograms(double lb) //method header to convert pounds to kilograms goes here
        {
            return lb * 0.453592;//return statement to calculate kilograms goes here    
        } 
        
        //convert kilograms to pounds
        public static double convertKilogramsToPounds(double kg)// method header to convert kilograms to pounds goes here
        {
            return kg * 2.20462; //return statement to calculate pounds goes here     
        } 
        
        //convert gallons to liters
        public static double convertGallonsToLiters(double gl) //method header to convert pounds to kilograms goes here
        {
            return gl * 3.78541;    
        } 
        
        //convert liters to gallons
        public static double convertLitersToGallons(double li)// method header to convert kilograms to pounds goes here
        {
            return li * 0.264172;     
        } 
        
        
            
        public static void main(String[ ] args)
        {
            //local variables
            //double miles, feet, inches, pounds, gallons;
            //double kilometers, kilograms, liters;
            
            //variable declaration and initialization
        
            printPurpose();                                    //invoke the printPurpose() method
            double feet = 6230;
            double miles = convertFeetToMiles(feet);            //invoke the convertFeetToMiles() static method and pass the feet variable as an argument
            System.out.printf("%8.1f ft. = %7.1f mi. %n", feet, miles);
            
            miles = 1.9;
            feet = convertMilesToFeet(miles);
            System.out.printf("%8.1f mi. = %7.1f ft. %n", miles, feet);
            
            miles = 22.3;
            double kilometers = convertMilesToKilometers(miles);
            System.out.printf("%8.1f mi. = %7.1f km. %n", miles, kilometers);
            
            kilometers = 1000.0;
            double kmToMiles = convertKilometersToMiles(kilometers);//call method to convert kilometers to miles goes here
            System.out.printf("%8.1f km. = %7.1f mi. %n", kilometers, kmToMiles);
            //print results goes here
            
            double pounds = 204;
            double lbToKg = convertPoundsToKilograms(pounds);//call method to convert pounds to kilograms goes here
            System.out.printf("%8.1f lb. = %7.1f kg. %n", pounds, lbToKg);
            //print results goes here
           
            double kilograms = 98.0; //declare and initialize the kilograms variable goes here
            double kgToLb = convertKilogramsToPounds(kilograms); //call method to convert kilograms to pounds goes here
            System.out.printf("%8.1f kg. = %7.1f lb. %n", kilograms, kgToLb);
            //print results goes here
            
            double gallons = 55.0;
            double gallonsToLiters = convertGallonsToLiters(gallons);
            System.out.printf("%8.1f gl. = %7.1f li. %n", gallons, gallonsToLiters);
            
            double liters = 2.0;
            double litersToGallons = convertLitersToGallons(liters);
            System.out.printf("%8.1f li. = %7.1f gl. %n", liters, litersToGallons);
               
        }//end of main method
        
    }//end of class
    Output:
    [​IMG]
     
  29. Unread #15 - Nov 10, 2014 at 1:08 PM
  30. !!!Nick!!!
    Joined:
    Feb 6, 2012
    Posts:
    79
    Referrals:
    0
    Sythe Gold:
    0

    !!!Nick!!! Member
    Banned

    Phils Path to Learning Java

    You're making some nice progress , good luck.
     
  31. Unread #16 - Nov 10, 2014 at 5:33 PM
  32. xPhilip
    Joined:
    Jul 15, 2010
    Posts:
    1,369
    Referrals:
    3
    Sythe Gold:
    0
    Two Factor Authentication User SytheSteamer Halloween 2014 (2) Christmas 2014 Extreme Homosex Potamus

    xPhilip Guru
    $5 USD Donor New

    Phils Path to Learning Java

    Thanks for the support man
     
  33. Unread #17 - Nov 10, 2014 at 8:03 PM
  34. !!!Nick!!!
    Joined:
    Feb 6, 2012
    Posts:
    79
    Referrals:
    0
    Sythe Gold:
    0

    !!!Nick!!! Member
    Banned

    Phils Path to Learning Java

    No problem man, im always here to support anyone who needs it.:'(
     
  35. Unread #18 - Nov 10, 2014 at 9:44 PM
  36. xPhilip
    Joined:
    Jul 15, 2010
    Posts:
    1,369
    Referrals:
    3
    Sythe Gold:
    0
    Two Factor Authentication User SytheSteamer Halloween 2014 (2) Christmas 2014 Extreme Homosex Potamus

    xPhilip Guru
    $5 USD Donor New

    Phils Path to Learning Java

    Trying to get 7.03 done tonight or early tomorrow
     
  37. Unread #19 - Nov 19, 2014 at 11:17 PM
  38. Prism
    Joined:
    Nov 19, 2014
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0

    Prism Newcomer

    Phils Path to Learning Java

    Its supported by Oracle and used by many Universities. Its actually a really handy tool for creating documentations.

    You should take a look at the Java documentation provided by Oracle, its really good for in-depth learning!
     
  39. Unread #20 - Nov 23, 2014 at 12:10 PM
  40. xPhilip
    Joined:
    Jul 15, 2010
    Posts:
    1,369
    Referrals:
    3
    Sythe Gold:
    0
    Two Factor Authentication User SytheSteamer Halloween 2014 (2) Christmas 2014 Extreme Homosex Potamus

    xPhilip Guru
    $5 USD Donor New

    Phils Path to Learning Java

    Just finished up challenge program for Module 7, starting Module 8 soon.
     
< FPM Support for Nginx | Would anyone be interested in a imgur FireFox addon? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site