LearningProcessing icon indicating copy to clipboard operation
LearningProcessing copied to clipboard

Generics syntax <> not showing up in code examples

Open willchamberlain opened this issue 9 years ago • 2 comments

Hello: http://learningprocessing.com/examples/chp23/example-23-05-mouse-history-pvector -->

    // Grab the current PVector
    PVector position = (PVector)history.get(i);

willchamberlain avatar Aug 29 '16 01:08 willchamberlain

Oh, the example uses generics

ArrayList<PVector> history = new ArrayList<PVector>();

which makes it so that the casting is not required. I think the <> is fooling the page into thinking it's an HTML tag and is not being shown. Need to look into fixing this.

shiffman avatar Aug 30 '16 18:08 shiffman

Thanks!

On 31 Aug 2016 4:44 am, Daniel Shiffman [email protected] wrote:

Oh, the example uses generics

ArrayList<PVector> history = new ArrayList<PVector>();

which makes it so that the casting is not required. I think the <> is fooling the page into thinking it's an HTML tag and is not being shown. Need to look into fixing this.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/shiffman/LearningProcessing/issues/204#issuecomment-243539279, or mute the threadhttps://github.com/notifications/unsubscribe-auth/APWTHJeAlAqgu0sW9o8im7KR7IRUQ6Yqks5qlHn3gaJpZM4JvFR5.

willchamberlain avatar Aug 30 '16 21:08 willchamberlain