Okay, so I got this collision algorithm for angle 180 (down) and I wanna know what I got to do to make it work for all angles.
if(new Rectangle((int)ball.x, (int) ball.y, ball.size, ball.size).intersects(new Rectangle(wall[i].x, wall[i].y, wall[i].width, wall[i].height))){
ball.y -= (ball.y + ball.size) - wall[i].y;
ball.angle = 0 //up
}