[java programming] Re: String vs StringBuffer

2009-08-11 Thread maa...@gmail.com
I always thought String was a final class, while StringBuffer wasn't. Cheers, -m On Tue, Aug 11, 2009 at 5:37 AM, hefaeche wrote: > > What it's the difference? Which it's better? > > String str = new String( "Hola" ); > str = str.concat(" Mundo" ); > System.out.println( str ); > > vs > > Strin

[java programming] Re: Compleete noob question

2009-05-24 Thread maa...@gmail.com
Hey There, On the homepage (http://www.javapassion.com/javaintro/) it states: The new and 8th session will start on July. 11th, 2009. This just means that the class has been offered seven times, and the next time will be the 8th time. Cheers, -maashu On Sun, May 24, 2009 at 3:39 AM, wrote:

[java programming] Re: Next Session

2009-05-24 Thread maa...@gmail.com
Yup! 2009/5/23 Reem Ahmed > > me too :) > > > > > Date: Sat, 23 May 2009 09:45:08 -0700 > > Subject: [java programming] Re: Next Session > > From: ramn...@gmail.com > > To: javaprogrammingwithpassion@googlegroups.com > > > > > > > Me 2 man ... CIAA > > > > On May 22, 10:25 pm, Sech777 wrote: >

[java programming] LAB-1007 Java Exceptions and Assertions - is there a better way?

2009-04-10 Thread maa...@gmail.com
Hi All, I've searched this list and haven't found another way to do this, so I'm just curious to know if this is the best way to do this. My project is running fine, but I wonder if there's a better way to implement this than what I've done here. This is a snippet of the code I used: if(size >

[java programming] Re: Creating objects of class vs. superclass

2009-04-02 Thread maa...@gmail.com
Hey All, Again, many, many thanks! Nuno, I totally understand this now based on your example. I'm definitely going to try it myself to solidify it in my head as well. Thanks!! Cheers, -Maashu On Thu, Apr 2, 2009 at 2:01 AM, hec-ubuntu wrote: > > Maashu, > > If there are no method declarati

[java programming] Re: Creating objects of class vs. superclass

2009-04-01 Thread maa...@gmail.com
Hey Hec! Great example, but let me ask you this: Taking your example, if you had coded: Dog dog = new Dog(); instead of: Animal dog = new Dog(); Wouldn't the dog object in the first scenario above still inherit the "talk" method just through inheritance from the superclass? Thanks to everyone

[java programming] Re: Creating objects of class vs. superclass

2009-04-01 Thread maa...@gmail.com
that's more than one parent and one child, I'm starting to get it, I'm just still not 100% sure why. Thanks! Cheers, -m On Wed, Apr 1, 2009 at 1:40 PM, miga wrote: > > > > On Apr 1, 10:26 pm, "maa...@gmail.com" wrote: > > Hi All, > > >

[java programming] Creating objects of class vs. superclass

2009-04-01 Thread maa...@gmail.com
Hi All, I apologize if this question has been answered, but I've read all the lessons and supporting material (up to "inner class," at least) and I've spoken to a colleague who has taken a similar intro to Java class, but I still can't figure this out. My question is this: I know that it's possi

[java programming] LAB-1036: Java Array, exercise 1.2 question

2009-02-15 Thread maa...@gmail.com
Hi All, I tried running the example as typed here, with this line: public class GreatestNumber ...but nothing happened. I assume that's because you need a Main class as the entry point, correct? So is this a typo? The only way I could get this to run was to change the class name (and therefor

[java programming] Re: Declare and initialize 3-dimensional array of int

2009-02-13 Thread maa...@gmail.com
Hi All, I'm a little confused on the directions of this one as well. I know how to declare and initialize a 3-dimensional array, but I'm not sure how to interpret this statement: * Initialize each cell with increasing integer number starting from 1000, 1001, 1002, and so on.* Does this mean that