Hey everyone I'm trying to make a brick wall and every second row has to be offset by half of the brick width. I don't know why my program isn't displaying anything all it shows is the grey...
Type: Posts; User: frodooftheshire
Hey everyone I'm trying to make a brick wall and every second row has to be offset by half of the brick width. I don't know why my program isn't displaying anything all it shows is the grey...
Ok your assumption was correct I want to do it in the method itself and what would be my return if it wasn't a formatted string that was my initial problem I didn't know exactly what to return in...
Should it not print out all the lines when I call the simulateFlight method? Why does it require to be done over and over that's my problem.
public class cannon
{
public static void main(String[]args)
{
cannonball one = new cannonball(100);
System.out.println(one);
one.simulateFlight();
...
Hey everyone so I am having the damndest time trying to find out why when I print out the string from the simulate flight method that it only prints out one line and doesn't go until height reaches...
I want to return three things from the one method is that possible?
2376
this is a picture of the entire message
Original Message: 1111111
With even Parity: 11111111
With odd Parity: 111111110
Original Message: 1111110
With even Parity: 11111101
With odd Parity: 111111010
that is what happened the...
it is an error which reads "missing return statement"
Well I assumed my error occurred in the other class not the driver class. I would use an if-else statement if I wanted to do one thing or another
Ok so I attatched the assignment the question I'm on is #2 and this is what I have down so far. It asks for a return type but I'm not sure what to return? Any advice would be greatly appreciated...
It has a driver class that out puts the info
public class parityFun
{
public static void main(String[]args)
{
message parity = new message("1111111");
message parity2 = new...
Alright So I am working on the first problem of this assignment and I have hit a road block. When my answer prints out it puts both a 1 and a 0 on and I only want it to do wone or the other...
Thanks
import java.util.Scanner;
public class Help
{
public static void main(String [] args)
{
Scanner in = new Scanner(System.in);
String abc;
int ind1, ind2;
So I was wondering if it is possible to stores indexes as variables. I have a question where the user inputs a string such as the fox [who is red] must have left earlier.
The problem is to return...
import java.util.Scanner;
public class Problem3
{
public static void main(String[]args)
{
Scanner in = new Scanner(System.in);
String DMS1, DMS2;
int degrees1, degrees2, minutes1, minutes2,...
2335 Ok so I attatched my assignment I completed question one very easily question two I completed except for the brackets part I was not sure how to single out the brackets as a substring. But...