Yes. I suspect it prints less than the hight of a chacarter, so the action might have to be more complicated than that, but basically yes.
Type: Posts; User: bardd
Yes. I suspect it prints less than the hight of a chacarter, so the action might have to be more complicated than that, but basically yes.
I want to make a program that turns a printer to a typewriter: you type a character, it is printed immediately, the page only goes up when a line is finished and only a bit etc.
The question is, is...
the ball doesn't hit the 3 bottom rows.
what do you mean by correlation?
what i ment was for some reason the ball hits the bricks on the upper rows of bricks but goes through the lower ones.
what other options do i have?
i changed it. you shouldn't have a poblem editing now. both width and height are defined in the constructor.
i forgot the imports. it should work now.
I am programming the game bricks, and i have a wierd problem: the ball only hits bricks above a curtain line.
ball code:
import java.awt.Graphics;
public class Ball {
private int r;...
what is the differance between a List, a LinkedList and an ArrayList?
how do I import a class from the default package of another project?
I'm not sure.
is there some sort of code that cant automatically create a file that saves the data and one that automatically retrives it?
How can I save data from previos runs?
I need to save the data of object "player" that has the fields:
String name
int health
int strength
int speed
I might create more fields
p.s. I'm a...
It prints these numbers next to each other, so if they're all 11.11 it'll print 11.1111.1111.11
if you'll write it this way:
System.out.println("Subtotal Tax: "+(firstTax + secondTax +...
I don't know what that means... as I wrote, I'm a beginner...
what does "System.exit()" mean?
I didn't really understand... can you put it in the code please?
I need to make a code that handels enormous natural numbers. Is there a variable type I can use? "long" isn't big enough.
for (int c=1; c<=6; c++)
{
int a=(int)(Math.random()*37+1);
int b=(int)(Math.random()*8+1);
System.out.print (a+" ");
if (c==6) System.out.println ("-...