<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Chapter 2 Review by Marrien Gomez</title>
      <link>https://padlet.com/mgomez233_1/g8393au88k19svry</link>
      <description></description>
      <language>en-us</language>
      <pubDate>2022-09-28 05:41:06 UTC</pubDate>
      <lastBuildDate>2022-09-28 06:09:27 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Calling a Non-Void Method</title>
         <author>mgomez233_1</author>
         <link>https://padlet.com/mgomez233_1/g8393au88k19svry/wish/2316871186</link>
         <description><![CDATA[<div>The void method will not return any value. It can be used to change the parameters of an object without creating a new object.</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-09-28 05:42:56 UTC</pubDate>
         <guid>https://padlet.com/mgomez233_1/g8393au88k19svry/wish/2316871186</guid>
      </item>
      <item>
         <title>Objects: How to Create/Store Objects</title>
         <author>mgomez233_1</author>
         <link>https://padlet.com/mgomez233_1/g8393au88k19svry/wish/2316871484</link>
         <description><![CDATA[<div>Create Objects:<br>- make a constructor<br>- ConstructorName objectName = new ConstructorName().&nbsp;<br>- Enter the information about the argument in the parentheses to match the constructor.</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-09-28 05:43:18 UTC</pubDate>
         <guid>https://padlet.com/mgomez233_1/g8393au88k19svry/wish/2316871484</guid>
      </item>
      <item>
         <title>Wrapper Classes</title>
         <author>mgomez233_1</author>
         <link>https://padlet.com/mgomez233_1/g8393au88k19svry/wish/2316871574</link>
         <description><![CDATA[<div>A Wrapper class is a class whose object wraps or contains primitive data types. We can wrap a primitive value into a wrapper class object.<br><br></div><pre>    Integer num = Integer.valueOf(23);
    Double num2 = Double.valueOf(5.55);

    // converts into primitive types
    int a = num.intValue();
    double b = num2.doubleValue();

    System.out.println("The value of a: " + a);
    System.out.println("The value of b: " + b);
  }</pre>]]></description>
         <enclosure url="" />
         <pubDate>2022-09-28 05:43:25 UTC</pubDate>
         <guid>https://padlet.com/mgomez233_1/g8393au88k19svry/wish/2316871574</guid>
      </item>
      <item>
         <title>Math Class</title>
         <author>mgomez233_1</author>
         <link>https://padlet.com/mgomez233_1/g8393au88k19svry/wish/2316871651</link>
         <description><![CDATA[<div><strong>Methods to know: </strong><br>- double abs(double x); int abs(int x) ;</div><ul><li>absolute of number</li></ul><div>- double sqrt(double x)</div><ul><li>square root of number</li></ul><div>-&nbsp; double random()</div><ul><li>random number from 0-1</li></ul><div>-&nbsp; double pow(double base, double exponent)&nbsp;</div><ul><li>...to the power of...</li></ul><div>- (int) (Math.random() * (total # of choices));&nbsp;</div><ul><li>Remember that Java is base 0 so if 10 is entered as the number of choices then a number between 0-9 will be generated.</li><li>&nbsp;Between two positive numbers: ◦ (int) (Math.random() * (total # of choices)) + starting number;</li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2022-09-28 05:43:31 UTC</pubDate>
         <guid>https://padlet.com/mgomez233_1/g8393au88k19svry/wish/2316871651</guid>
      </item>
      <item>
         <title>Overloading</title>
         <author>mgomez233_1</author>
         <link>https://padlet.com/mgomez233_1/g8393au88k19svry/wish/2316871726</link>
         <description><![CDATA[<div>Overloading in Java is the ability to define more than one method with the same name in a class. <br><br><strong>Overloading Example: </strong><br>Private String name;<br>Private int age;<br><br>Public Person(String n)<br>{<br>Name = name;<br>Age = unknown;<br>}<br><br>Public Person(String n, int a)<br>{<br>Name = n;<br>Age = a<br>}<br><br>Person Natalie = new Person(“Marrien”);<br>Person Maggie = new Person(“Gomez”, 17);</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-09-28 05:43:37 UTC</pubDate>
         <guid>https://padlet.com/mgomez233_1/g8393au88k19svry/wish/2316871726</guid>
      </item>
      <item>
         <title>Void Method Examples</title>
         <author>mgomez233_1</author>
         <link>https://padlet.com/mgomez233_1/g8393au88k19svry/wish/2316871856</link>
         <description><![CDATA[<div>Private int width;<br>Private int height;<br><br>Public Rectangle(int wid, int hei)<br>{<br>Width = wid;<br>Height = hei;<br>}<br><br>Pubic void changeWidth(int wid)<br>{<br>Width = wid;<br>}<br><br>Rectangle rect1 = new Rectangle(10, 5);<br>rect1.changeWidth(6);<br><br>//code changes width from 10 to 6//</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-09-28 05:43:47 UTC</pubDate>
         <guid>https://padlet.com/mgomez233_1/g8393au88k19svry/wish/2316871856</guid>
      </item>
      <item>
         <title>String Object</title>
         <author>mgomez233_1</author>
         <link>https://padlet.com/mgomez233_1/g8393au88k19svry/wish/2316872021</link>
         <description><![CDATA[<div><strong>Strings are objects that consist of a set of characters</strong>(letters, numbers, punctuation, etc.).</div><div><br></div><div><strong>How to create a String:</strong></div><div>String name = “word”; (In quotation marks!!)</div><div><br></div><div>Java will automatically number each character in a String, starting from 0. That number is called the Index. For example:</div><div><br></div><div>String name = “word”;</div><div>|w|o|r|d|&lt;— String Characters</div><div>|0|1|2|3|&lt;—- Index</div><div><br></div><div><strong>Other things to note about Strings:</strong></div><div>- They are immutable, which means they can’t be changed in the traditional sense like int and double values can. Instead, they must be re-assigned to a new String value. Even though the String won’t point to the same memory address anymore, the old value still exists in memory though.&nbsp;</div><div>- Because Strings are objects, they have methods!</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-09-28 05:43:58 UTC</pubDate>
         <guid>https://padlet.com/mgomez233_1/g8393au88k19svry/wish/2316872021</guid>
      </item>
      <item>
         <title>String Method</title>
         <author>mgomez233_1</author>
         <link>https://padlet.com/mgomez233_1/g8393au88k19svry/wish/2316872159</link>
         <description><![CDATA[<div><strong>- String.length()</strong></div><ul><li>Returns the number of characters in a String</li></ul><div><strong>- String.charAt(int index)</strong></div><ul><li>Returns the char at the index value given&nbsp;</li></ul><div><strong>- String.substring(int from, int to)</strong></div><ul><li>Returns a String from the first index up until but not including the last index.&nbsp;</li></ul><div><strong>- String.substring(int from)</strong></div><ul><li>Returns a String from the first index given until the end of the String</li></ul><div><strong>- String.indexOf(String str)</strong></div><ul><li>Returns an int of the index value&nbsp; of the first iteration of the given String inside the String object the method’s being called on</li></ul><div><strong>- String.equals(String other)</strong></div><ul><li>Compares the String object to a given String and Returns a boolean value of true they’re the same, false otherwise.</li></ul><div><strong>- String.compareTo(String other)</strong></div><ul><li>Compares the String object to a given String and returns an int value based on the first discrepancy between the two Strings, either in lexicographical order or if no difference there, in length.</li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2022-09-28 05:44:09 UTC</pubDate>
         <guid>https://padlet.com/mgomez233_1/g8393au88k19svry/wish/2316872159</guid>
      </item>
   </channel>
</rss>
