Comment

Kiran
Another Qs,
February 8, 2009 at 1:21 AM

Thanks for the triangle program. and i need help to solve the problem with output like below.

ABCD DCBA
ABC CBA
AB BA
A A

Thanks
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Java Beginners

TRIANGLE OF *S AT THE BOTTOM RIGHT!!! - Java Beginners
TRIANGLE OF *S AT THE BOTTOM RIGHT!!!  My Question is to : "Write a program that inputs one integer m and outputs an m-line high triangle of *'s... to make the triangle at the right side but couldn't do so. Can you please solve 

Java Beginners

Another Question - Java Beginners
Another Question  This is the question I posted yesterday: "I'm trying to write a program that has a text field for input, two buttons...... Thank you!  Hi Friend, Save the following code in the java 

Java Beginners

Triangle program
Triangle program  1 121 12321 1234321 123454321 kindly give the code 4 this program in java    1 121 12321 1234321 write a program for this triangle    1 121 12321 1234321 write a program 

Java Tips and Examples

Write a program to construct a triangle with the ?*?
'*'. First of all make a class named 'triangle' under the Java I/O package... Write a program to construct a triangle with the ?*?       This lesson in Java 

Java Beginners

Another distance conversion - Java Beginners
Another distance conversion  Write an application that reads a distance in metres. The program will then convert the distance to kilometres, feet and inches, by calling methods. The converted distances will be printed. ? Write 

HTML Questions

triangle
triangle  how to draw triangle numbers with stars in html with the help of javascript 

Java Beginners

how to perform a equqlity triangle in java
how to perform a equqlity triangle in java  below the output 1 2 3 4 6 5 7 9 10 8 

Java Beginners

Java draw triangle draw method?
Java draw triangle draw method?  hi how would i construct the draw method for an triangle using the 'public void draw (graphics g ) method? im...; Here is an example that draws a triangle using drawPolygon method. import 

Java Beginners

get the value from another class - Java Beginners
get the value from another class  Hello to all, I have stupid question. I have main.java and ConfigXML.java(read my config xml file). Code from ConfigXML.java [code] NodeList flnamelist = flcon.getElementsByTagName 

Java Beginners

triangle
the sides of a triangle If they can form a triangle, determine and print if they can also form the sides of a right-angle triangle The class should include proper data 

Java Code Examples

Java create triangle pattern
Java create triangle pattern In this tutorial, you will learn how to create a triangle shape. For this, user is allowed to enter number of lines to display the triangle of that length and a symbol to show the triangle in a particular 

Java Beginners

how to perform a equqlity triangle in java
how to perform a equqlity triangle in java  below the output 1 2 3 4 6 5 7 9 10 8   Here is an example of pattern like 1 2 3 4 5 6 7 8 9 10 Example : public class NumberTriangleClass{ public static void 

General

How to calculate area of triangle
of triangle. Description of this program  This is very java programming... Area of Triangle       In this section we will learn how to calculate area of triangle. We 

JSP Servlet Questions

answer this qs in 5 mins plss
answer this qs in 5 mins plss  Create an Web Application, which allows a user to search a book as follows: Based on ISBN code, if he is aware of the code (or) Based on the Book Categories The results of the search has 

Java Beginners

A Program To Print A Equilateral Triangle
A Program To Print A Equilateral Triangle  Write A program to Print Following In Java : 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 

Java-Tutorials

Java Program Floyd's Triangle
Java Program Floyd's Triangle In this section you will read about how to write a Java program to print Floyd's triangle. This tutorial is about printing a Floyd's triangle in Java. Here you will learn about all the steps 

Java Beginners

File copy from one drive to another. - Java Beginners
File copy from one drive to another.  I want to copy a .mp3 file from one drive(let d: drive)to another drive(let e: drive) in my Windows XP. How can I do 

Java Beginners

I want display frame in another frame - Java Beginners
I want display frame in another frame  Hi all, this is available... is header.jsp and another is footer.jsp I want to display footer.jsp is display in left side uses link if i click this link then open the page in another frame 

Java Beginners

Javascript coding for link a website to another upon verify the form - Java Beginners
Javascript coding for link a website to another upon verify the form  Pls tell me javascript coding for " open a website when we click the verify button in the form? ( after verifying the form go to the desired website).  

Java Beginners

how to go from one frame to another frame in swings - Java Beginners
how to go from one frame to another frame in swings  Hi, My task is to go from one frame to another.......... let us think that iam having two buttons on a frame........button names are ok and next........ when iam clicking 

Java Beginners

java loops - Java Beginners
java loops  Q1 print the following pyramid...- write a program to print the upper and lower triangle of a matrix? Q6... a program to reverse a string using another array and without using another array 

Java Beginners

Recursion - Java Beginners
Recursion  HI!Can i ask for another recursion diamond,using recursive... void main(String[] args) { int theAnswer = triangle(12); System.out.println("Triangle=" + theAnswer); } public static int triangle(int n 

Java Beginners

java program - Java Beginners
java program  what is the program the a simple program in Java... of the triangle and then the program; a)First determines whether the 3 integers entered represent the sides of a right-angled triangle, equilateral triangle, isosceles 

Java Beginners

java beginners - Java Beginners
java beginners   the patteren u received is not the actual patteren... in proper formate to you . it was in upside down triangle form . at the top... 'a' will be moving towards left forming a triangle . id possible tell me how 

Java Beginners

How to copy files from one folder to another based on lastmodified date - Java Beginners
Copy files from one folder to another  How to copy files from one folder to another based on lastmodified date 

Java Beginners

triangle output
triangle output  program to get the following output 

Java Beginners

class - Java Beginners
Shapes has abstract methods-area(),display(). Classes Rectangle and Triangle should... implement the Perimeter interface Class Rectangle extends another class 

Java Beginners

class - Java Beginners
Shapes has abstract methods-area(),display(). Classes Rectangle and Triangle should... implement the Perimeter interface Class Rectangle extends another class 

Java Beginners

How to copy files from one folder to another based on lastmodified date - Java Beginners
How to copy files from one folder to another based on lastmodified date  I have to make a simple utility to copy files from a folder to another...); } }}-----------------------read for more information.http://www.roseindia.net/java 

Java Beginners

How to insert a single page PDF file into another multipage PDF file using iText? - Java Beginners
How to insert a single page PDF file into another multipage PDF file using iText?  Hi ALL: I have two PDF files. PDF-A.pdf is a multipage PDF file. PDF-B.pdf is a single page PDF file. I want to insert PDF-B into PDF-A only 

Java Beginners

triangle output
triangle output  program to get the following output: * *   Hi Friend, Please specify the pattern properly. Thanks 

Development process Questions

Triangle pgm
Triangle pgm  how to write code fa this??? 1 222 33333 4444444 55555555 666666666 

Development process Questions

pascal triangle
pascal triangle   given string : char str[]="123456789"; write a program in 'c'-language that displays the following: 1 232... the following link: C Pascal's Triangle Thanks 

Java Beginners

Code for a triangle.....
Code for a triangle.....   1 1 5 1 1 5 25 5 1 What is the source Code for above output 

Java Beginners

web programming - Java Beginners
+"=([^&#]*)"); var qs = regex.exec(window.location.href); if(qs == null) return default_; else return qs[1]; } var s1 = getQuerystring('fname 

Java Beginners

I/O to another applications
I/O to another applications  **What if there exists an application that needs a certain input and will give an output. Using Java, how can we invoke that application with an input and read the resulted output?**   Hi 

Java Beginners

Triangle problem
Triangle problem  what's the logic for create pattern program how can i create any pattern program with in minute. like this 1 2 5 3 6 8 4 7 9 10 

Java Beginners

how to write a program in java to print numbers in equalateral triangle
how to write a program in java to print numbers in equalateral triangle  the output must be 1 324 76589   Here is an example of pattern 1 2 3 4 5 6 7 8 9 Example: public class NumberTriangle{ public 

Java Beginners

Triangle Program
Triangle Program  i want program code for 1 2 3 4 5 6 7 8 9 10 any body please help me   public class Triangle { public static void main(String[] args 

Java Beginners

java - Java Beginners
java  Develop with suitable hierarchy, classes for Point, Shape, Rectangle, Square, Circle, Ellipse, Triangle, Polygon, etc. Design a simple test application to demonstrate dynamic polymorphism 

Java Beginners

triangle shape
triangle shape  Hi, I have to create a program which its output is: + ++ +++ ++++ and this what I did so far : package symbols; import java.util.*; public class Symbols { public static void main(String[] args) { Scanner 

Java Beginners

java code - Java Beginners
java code   Dear Sir i need code for the following... * * * * * * * * * * * * * * * This is called Equilateral triangle   Hi...://www.roseindia.net/java/ Thanks.    Hello Please try the following code may 

Java Beginners

Program - Java Beginners
Program Java link list  I need program in Java to copy a file to another file  Hi Friend,For more informationhttp://www.roseindia.net/java/beginners/linked-list-demo.shtml 

Java Beginners

java lab programs - Java Beginners
java lab programs  1. Develop a Java package with simple Stack... for Complex numbers in Java. In addition to methods for basic operations on complex..., Ellipse, Triangle, Polygon, etc. Design a simple test application 

Java-Tutorials

Java coding for beginners
This article is for beginners who want to learn Java Tutorials of this section are especially for the beginners who want to incept the Java program from very beginning. Tutorial Java coding for beginners will enable you to know about 

Travel

India Golden Triangle With Kerala Backwater Tours
Golden Triangle Tour with Kerala Backwaters Duration: 14 Nights/ 15 Days... fort and Jama Masjid. As a part of Golden Triangle Tour with Kerala package you... breakfast you will be transferred to Alleppey, another famous backwater 

Travel

India Golden Triangle Tours with Orchha & Khajuraho
Golden Triangle Tour with Orchha, Khajuraho and Varanasi Duration : 11 Nights 12 Days Destinations Covered: Delhi- Jaipur- Agra-Gwalior-Orchha-Khajuraho... breakfast you will go for a road trip to Orchha, another historic city 

Java Beginners

Floyd triangle
 

Java Beginners

Floyd's triangle
 

Java Beginners

scanner problem - Java Beginners
scanner problem  the program that enters sides of the triangle using... are providing you a code that will calculate the area of triangle having base and height...(); double area=b*h*1/2; System.out.println("Area of Triangle =" +area 

Java Beginners

Dynamic Polymorphism - Java Beginners
Dynamic Polymorphism  Develop with suitable hierarchy, classes for Point, Shape, Rectangle, Square, Circle, Ellipse, Triangle, Polygon, etc. Design a simple test application to demonstrate dynamic polymorphism.? Thanks 

Java Beginners

Dynamic polymorphism - Java Beginners
Dynamic polymorphism  Develop with suitable hierarchy, classes for point, shape, rectangele, square, circle,ellipse, triangle, polygon, etc. Design a simple test application to demonstrate dynamic polymorphism.. Thanks 

Travel

Golden triangle tours
Golden triangle tours  Hi, Can anyone tell me something about Golden triangle tours? Thanks   Hi, Golden Triangle tour cover Delhi, Agra and Jaipur. Please check India Golden Triangle Tours. Thanks 

Travel

Golden Triangle Tours
Golden Triangle Tours  What is golden triangle tours ..and how it is related to the Agra and Jaipur and Delhi trip? Please explain me. Thanks 

Java Beginners

File copy from one directory to another in java
for copying the file from one directory to another directory in Java...File copy from one directory to another in java  I am trying to find very good code example for copying a file from one directory to another 

Travel

Golden Triangle Tour with Mata Vaishno Devi
Golden Triangle Tour with Mata Vaishno Devi Duration : 9 Nights 10 Days... triangle tour with Mata Vaishno Devi package, you will head... is another worth visiting tourist attraction in Delhi. Dinner and overnight 

Java Beginners

java code - Java Beginners
java code  Dear sir i need one java code * * * * * * * * * * * * * * * this model only i dont want need... public class Triangle { public static void main(String[] args) { for(int 

Java Tips and Examples

Copying an array to another
Copying an array to another       Java Copy Array Example:In this tutorial, you will learn how to copy data from one array to another. Here, providing you an example with code 

Java Beginners

Java - Java Beginners
Java  Explain the advantage of using ?this? keyword in Java... used to forward a call from one constructor in a class to another constructor... For more information, visit the following link: http://www.roseindia.net/java 

Java-Tutorials

Java - Copying one file to another
Java - Copying one file to another   ... how to copy contents from one file to another file. This topic is related... This program copies one file to another file. We will be declaring a function 

Java Beginners

PYRAMID - Java Beginners
PYRAMID  I want to know a java program that using For Loop which will display triangle or pyramid... The user must choose A, B, or C...: A (so it will display a Pyramid OR TRIANGLE) would you like to continue y 

Java Beginners

cannot find symbol - Java Beginners
cannot find symbol  public class Areatest { public static void main(String[]args) { Figure[]figures={new Triangle(2.0,3.0,3.0),new Rectangle(4.0,6.0),new Square(5.0)}; for(int i=0;i 

General

Convert One Unit to Another
Convert One Unit to Another       Again in this section, you will learn to convert One Unit to Another. The following program helps you in converting some more units to another.  

Java Beginners

java - Java Beginners
java  how to send a mail without authentication one domain to another in java 

Java Beginners

java - Java Beginners
java  How to send audio file through one mobile to another mobile using JAVA 

Java Beginners

RASTER TRIANGLES!!! - Java Beginners
of right angle triangle starting from left side on the screen as you can see below... if i want to make this kind of triangle 4 times in the same row where... by giving you an example: For example i want my triangle to be of size 5 

Java Beginners

java swings - Java Beginners
java swings  Hi, I have two listboxes .Move the one listbox value into another listbox using add button.Move the value one by one into another listbox.Please give the code using jpanel. Thanks, Valarmathi 

Java Beginners

java lab programs - Java Beginners
java lab programs  Develop with suitable hierarchy, classes for Point, Shape, Rectangle, Square, Circle, Ellipse, Triangle, Polygon, etc. Design a simple test application to demonstrate dynamic polymorphism. 5. Design a Java 

Java Beginners

java program to copy the contents of one folder to another folder
java program to copy the contents of one folder to another folder  java program to copy the contents of one folder to another folder   Have a look at the following link: Java Copy one folder to another 

Java Beginners

java - Java Beginners
java  I want to know a java program that using For Loop which will display triangle or pyramid... The user must choose A, B, or C and then it will output a corresponding shape. Example output display: Enter a character: A (so 

Java Beginners

how to copy file from one directory to another in java with examples
how to copy file from one directory to another in java with examples  how to copy file from one directory to another in java with examples? I want... copy from one directory to another in java. Thanks 

Java Beginners

java concepts - Java Beginners
java concepts   i need theory for designing a java interface for adt stack .develop two different classes that implement the interface one using array and another using linkedlist 

Java Beginners

Java - Java Beginners
ORIENTED PROGRAMMING) USING JAVA...JAVA CODES.WHAT SHOULD I CHOOSE BECAUSE I... and is popular in developing larger application. Another important work in OOP... of the problem, preparing a solution, coding and finally its maintenance. Java 

Java Beginners

call another computer in LAN (no internet acces)
call another computer in LAN (no internet acces)  Any idea how to develop a java application that makes VOIP calls inside an isolated (without internet access) network? Is there any (free) software solution for my problem? Thank 

Java Beginners

RASTER TRAINGLES!!! - Java Beginners
of each triangle (i.e. width in characters and height in lines) (b... of triangles to be output. In the example output above the triangle size... of each triangle at a time. In doing this it will output a sequence of *'s 

Java Beginners

java - Java Beginners
://www.roseindia.net/java/beginners... calls another function which in turns calls another function etc... information on Stack or Heap Visit to : http://www.roseindia.net/java/java-get-example 

Java Beginners

java - Java Beginners
java   Hi, I want to save the URL at local disk shown in address bar of Internet Explorer during on-line using java.net package's classes[ if possible]. Otherwise what is another solution 

Java Beginners

program - Java Beginners
is not coming.. see my program... import java.io.*; class triangle... java.io.*; public class triangle { public static void main (String[] args.... http://www.roseindia.net/java/ Thanks 

Java Tips and Examples

Java - Copying one file to another
Java - Copying one file to another   ... file to another file. This topic is related to the I/O (input/output... to another file. We will be declaring a function called copyfile which copies 

Java Beginners

java coding - Java Beginners
java coding  dear sir, i'm doing a java coding using with netbeans ide, so i'm trying to pass some text from one jframe to another jframe which... another jframe form? this also very urgent 

Java Beginners

Java - Java Beginners
Java    Write a multi-threaded Java program to print all numbers... them into a pipe. Design another thread that generates fibonacci numbers and writes them to another pipe. The main thread should read both the pipes 

Applet Questions

problem in sending data from one ip to another ip in JAVA
device in JAVA. i know how to ping but don't how to send the msg's to another IP...problem in sending data from one ip to another ip in JAVA  Hi guys . this is naveen kumar...i need a help. i want to connect one ip to another ip 

Java Beginners

java - Java Beginners
java  the term instance variable is another name is? class variable another name also   Hi Friend, Instance variables are also known as member variables or non static variables. Class variables are also known 

Java Beginners

java - Java Beginners
java  I want to know a java program that using For Loop which will display triangle or pyramid... The user must choose A, B, or C... information. http://www.roseindia.net/java/ Thanks. Amar 

Java Beginners

java - Java Beginners
java  Write a multi-threaded Java program to print all numbers below... them into a pipe. Design another thread that generates fibonacci numbers and writes them to another pipe. The main thread should read both the pipes 

Java Beginners

Applet - Java Beginners
java.awt.*; public class Triangle extends JApplet implements MouseListener...; // Left part of the triangle. if (x0to1 > 0... of the triangle. for (i = pt[1].x+1; i <= pt[2].x; i 

Java Beginners

java documentation - Java Beginners
java documentation   Sir my qn is that How to use javadoc tool? please explain this with a small example? How much memory...? Another thing is How can i see those question that are asked by others 

Java Beginners

java - Java Beginners
java  hiiiiiiiiiiiii, Thanks for ur reply,can u plz tell me is there any color modification possible in java coding,if so explain me and send me the code also.And i have another problem while visiting this website 

Java Beginners

java pointers - Java Beginners
java pointers  "There is no need to store the address of the another variable in java So that pointers are not used in java."how it is different... the rule of OOP. so java does not support pointer.so that direct access to any 

Java Beginners

JAVA - Java Beginners
methods in Java. 2. Design a thread-safe implementation of Queue class. Write... a multi-threaded Java program to print all numbers below 100,000 that are both... another thread that generates fibonacci numbers and writes them to another pipe 

Java Beginners

JAVA - Java Beginners
methods in Java. 2. Design a thread-safe implementation of Queue class. Write... a multi-threaded Java program to print all numbers below 100,000 that are both... another thread that generates fibonacci numbers and writes them to another pipe 

Programming Tutorials

ShortBuffer in java, Transfer the content of a short buffer into another.
ShortBuffer in java, Transfer the content of a short buffer into another...;java BufferToBuffer Transfer the content from one short buffer into another... into another short buffer. ShortBuffer API: The java.nio.ShortBuffer class 

Java Beginners

java mail - Java Beginners
java mail  how to send a mail without authentication one domain to another in java?  hi elumalai, check yourself, this is user problem.  Hi, You have to use the Java mail api. You need to use the SMTP 

General

Java call method from another class
Java call method from another class   ...; methods of another class. For this we have created two java files... of both the java files should match with each other. Here is the code 

Java Beginners

java - Java Beginners
java  I want a program to count the number of repeteate word in file & also i want to repalce the repeate word with another new word.plse help me 

Java Interview Questions

Beginners in Java
Beginners in Java  Hi, I am beginners in Java, can someone help me... tutorials for beginners in Java with example? Thanks.   Hi, want to be command over Java, you should go on the link and follow the various beginners 

Java Beginners

java - Java Beginners
java  Write a Java program to accept a passage of 20 sentences each having not more than 20 words. The program takes as input another word... to : http://www.roseindia.net/java/ Thanks 

Java Beginners

Java Coding - Java Beginners
Java Coding  What is the meaning of following statement in Java? Clasname objectname = another_object_name.method_name; The Example Code is Given Below public void sessionCreated(HttpSessionEvent sessionEvent 

JavaScript Questions

Displatying java script form submitted elements in another page
Displatying java script form submitted elements in another page   hi I want java script and html code for displaying the values in other pager after submitting the registration form. I want to get the values after submitting 

Java Beginners

java beginners - Java Beginners
the following links: http://www.roseindia.net/java/beginners/StringTokenizing.shtml http://www.roseindia.net/java/beginners/tokenizingjavasourcecode.shtml...java beginners  what is StringTokenizer? what is the funciton 

Advertisements Advertisements
 

 

 

DMCA.com