I need help with writing up the Java Code.

Let’s find an answer to "I need help with writing up the Java Code.". The most accurate or helpful solution is served by Yahoo! Answers.

There are ten answers to this question.

Best solution

I need help writing a java code help?

i need a java code using only 2 nested for loops to display.. 1 1 2 1 2 4 1 2 4 8 1 2 4 8 16 1 2 4 8 16 32 1 2 4 8 16 32 64 1 2 4 8 16 32 64 128 1 2 4 8 16 32 64 1 2 4 8 16 32 n 1 2 4 8 16 1 2 4 8 1 2 4 1 2 1

Answer:

This will do the job: for(int i = 1; i < 17; i++) { int m = (i < 9) ? i : 16 - i; for(int j =...

Read more

reddrago... at Yahoo! Answers Mark as irrelevant Undo

Other solutions

I need help writing Java code.?

Hi I need help writing Java code using while loops. The code is supposed to make a user enter a character and the character has to be displayed 40 times with spaces in between the characters. I wrote this code (see below)but it just shows one character...

Answer:

I relied on http://www.video-animation.com/java_004.shtml for assistance on the correct Java syntax...

Read more

Marc at Yahoo! Answers Mark as irrelevant Undo

Need help writing code for java game with animation?

i need help getting a rectangle to move side to side these are the dimensions: g.setColor(Color.BLUE); g.fillRect(397,207,25,165); i need it to move along the x axis between the points 200 and 570 where y=125 (moving pretty much on a horizontal line...

Answer:

you need a thread. suppose you have a: import java.awt.*; import java.applet.*; public class myApplet...

Read more

peanutt at Yahoo! Answers Mark as irrelevant Undo

I need some help writing code for the collatz theory in JAVA!!!?

this is my method: I would like to now add a counter that will count the numberof steps it took to reach the number 1. like for example, if the input number was 1, it would have done 0 steps because 1 is the number it wants. if it was 2, it would take...

Answer:

donno what the collatz theory is, but I think you would be interested in returning the counter rather...

Read more

sidd0123 at Yahoo! Answers Mark as irrelevant Undo

I need help writing a java code?

The question says to write a program that converts as input integer to the equivalent number in binary form and displays the binary number as output. An algorithm for this conversion follows: set binary string to "" while decimal number >...

Answer:

Stop asking people to do your homework.

Read more

mari at Yahoo! Answers Mark as irrelevant Undo

Java homework help (fairly simple method)?

Here are the specifications for completing the StringArray class: a) In the class StringArray write method numInArray,using the method signature below. numInArray should return the number of times the string s occurs in array A. For example, assume that...

Answer:

Nice to see that you are using the String.equals() method. Surprising a lot of people miss that issue...

Read more

sk8ergir... at Yahoo! Answers Mark as irrelevant Undo

Java programming help?! ?

I need help writing a code to Create a FormalGreeting application that prompts the user for his or her name, including title. The application should display “Hello, sir” if the string starts with Mr., “Hello, ma’am” if the...

Answer:

Hi, You start developing and if you have any queries then post them here. If you wanna hire some one...

Read more

INeedAns... at Yahoo! Answers Mark as irrelevant Undo

JAVA programming ..CAN ANYBODY help me setting it up...the exersise it states that...?

This is the assigment but i cant figure it out..i had an error but i dont get to work this program CAN U GUYS HELP ME OUT PLEASE...THIS is the exercise: Suppose that u r salesman, and ur total earnings depends on both a base assume 10000 and commission...

Answer:

There are a few things here. First, don't use System.out.printf() unless you're formatting values with...

Read more

Nelson at Yahoo! Answers Mark as irrelevant Undo

Urgent! I need help on a Java project for school! Can you fix this code?

I am working on a project for my AP Java (Computer Science A) class and I need your help! I am trying to post data to a html form from a particular website: http://www.upcdatabase.com/itemform.asp The Java code I wrote kind of sort of works, but returns...

Answer:

That itemform.asp page uses JavaScript to catch the form submission and construct an URL that refers...

Read more

Sylvie at Yahoo! Answers Mark as irrelevant Undo

Need help with Java code!!!?

The code I have compiles but when I run it I get: Salesperson Sales -------------------- 1 0 2 4 3 5 Salesperson 3 had the highest sale with $5.00 Salesperson 0 had the lowest sale with $0.00 Here are the directions I have and my code. Help please!!...

Answer:

for (int i=0+1; i < sales.length; i++) { System.out.print("Enter sales for salesperson "...

Read more

fun_girl... at Yahoo! Answers Mark as irrelevant Undo

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.