473,396 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Yet another homework problem

i want Java code for below output



*
* *
* * *
* * * *
Sep 11 '07 #1
4 1112
dmjpro
2,476 2GB
i want Java code for below output



*
* *
* * *
* * * *
Hey don't come with such problems here.
You better to come here with some code and with specific problem.
Try a code first then come here.
Ok!

Kind regards,
Dmjpro.
Sep 11 '07 #2
JosAH
11,448 Expert 8TB
i want Java code for below output


Expand|Select|Wrap|Line Numbers
  1. .              *
  2.             *     *
  3.           *     *     *
  4.         *    *     *     *
Look! The output changed! It was a Good Thing (tm) I passed by and corrected
the way your output looked; just imagine if some poor soul had written code
for you that produced that other output in your original post. All the effort would've
been wasted. Why don't you give it a try yourself first?

kind regards,

Jos
Sep 11 '07 #3
Nepomuk
3,112 Expert 2GB
i want Java code for below output



*
* *
* * *
* * * *
As you may have read (however, probably didn't), we shouldn't give you ready made answers (and it's good that way). In the guidelines, you'll even find a very similar example to yours. (But solved in C/C++.)

If you're new to Java, read this article about free classes - it will help you to understand the basics and you will be able to solve the problem.

If you get stuck or don't understand something, even after looking up some other sources (like the API from sun), feel free to ask here.

Greetings,
Nepomuk
Sep 11 '07 #4
funga
4
I think you can write the nested for loop as follows...........
<Code removed. Please read our POSTING GUIDELINES.

MODERATOR>

I think this will work.... he he ;) .....
Sep 20 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Nep Tune | last post by:
It goes like the following: Use AdventureWorks database and HumanResources.Department table. Create a stored procedure called spDepartmentAddUpdate. This procedure accepts two parameters: Name,...
11
by: spawn | last post by:
but I've been struggling with this for far too long and I'm about to start beating my head against the wall. My assignment seemed simple: create a program that will cacluate the running total of...
3
by: fidan15 | last post by:
Hello! For my homework problem I received the task to modify a program so that it can open,read and close a directory, without the library <dirent.h>. Up till now I have tried to copy and paste...
3
by: sewell | last post by:
Hey I have a problem with my homework. I really don't understand functions that well so bare with me. This the problem void getJudgeData ( ) should ask the user for a judge’s score, store it...
8
by: teddarr | last post by:
OK I'm having trouble with this problem on my homework. I got the rest OK, I don't know why this problem is stumping me. List the number of rooms in each hotel. Tables: HOTEL: (hotelNo,...
8
by: garyrowell | last post by:
I have been at this programme for hours trying to work out what is wrong. Any help would be very much appricated. Here is the breif I received. The program This week you are going to write three...
24
by: Three Headed Monkey | last post by:
write a program in "C" language that computes 9^(8^(7^(6^(5^(4^(3^(2^1))))))) I tried #include <stdio.h> int pow(int n) { int i,power; power=n;
3
by: alireza6485 | last post by:
I need to write a C# program that asks for a pattern and for each pattern beeps one and goes silence for 1 second. This is my code: for (int i=0;i< pattern; i++) { ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.