All pastes #769415 Raw Edit

Anonym

public java v1 · immutable
·published 2007-11-11 12:48 UTC
rendered paste body
p u b l i c c l a s s Scope {   s t a t i c i n t m( i n t a, i n t b) {       i n t sum = a + b ;       // *** 1 ***       r e t u r n sum ;   }   s t a t i c c l a s s Vec3 {       f l o a t x ,y , z ;       void add ( Vec3 b ) {           x += b . x ; y += b . y ; z += b . z ;           // *** 2 ***       }       f l o a t sum () {           f l o a t sum = x + y + z ;           // *** 3 ***           r e t u r n sum ;       }   }   p u b l i c s t a t i c void main ( String args []) {       i n t sum = 0;       f o r ( i n t i = 0; i < 4; i ++)           sum += i ;       // *** 4 ***       i f ( sum > 3)       {           i n t b = 3*7;           sum = m ( sum , b );           // *** 5 ***       }       Vec3 p = new Vec3 ();       p . x = p . y = -( p . z = 1);       f l o a t x = p.x;       // *** 6 ***       Vec3 q = p ;       q . y = 2;       // *** 7 ***       q = new Vec3 ();       q . x = q . y = q . z = 2;       q . add ( p );       // *** 8 ***   }}