Posts by Juao • 31 points
2 posts
-
-1
votes2
answers104
viewsA: Problems with extensive algorithm
You don’t need to compare each number, something like that is enough. #include <stdio.h> #include <stdlib.h> int main() { srand(time(NULL)); int numero, acertou = 0; int aleatorio =…
-
3
votes1
answer3069
viewsQ: What is the advantage of using Bufferedimage for images?
I want to know the difference in using BufferedImage and the method graphics to draw the images to the ImageIcon. Here is an example: @Override public void paint(Graphics g) { g.drawImage(bfImage,…