Thursday , February 23 2017
Home / JAVA (page 6)

JAVA

java program for pattern#12

Java program for pattern with indentation or spacing [crayon-58ae0a2a7256e177351250/] This is a simple java program for pattern with indentation. Indentation in pattern is thus required. This can be done using extra for loop to provide the required indentation per line. Also Check: Alternate C program for this pattern #12 [crayon-58ae0a2a7257e621697942/] OUTPUT:

Read More »

java program for pattern with indentation

 java program for pattern making [crayon-58ae0a2a754a3928312123/]   This is a simple java program for pattern with indentation. Indentation in pattern is thus required. This can be done using extra for loop to provide the required indentation per line. ALSO CHECK:  Alternate c program for this pattern [crayon-58ae0a2a754af500934091/] OUTPUT: Tags: program for pattern making in bluej, java program for pattern making, ...

Read More »

java program for pattern#8

 java program for pattern making: [crayon-58ae0a2a75bf9391499046/] This is a simple pattern in java where you have 4 rows: Now the columns are dependent on number of rows. For 1st row there is only 1 element or 1 column. For 2nd row there are 2 elements or 2 columns For 3rd row there are 3 elements or 3 columns. We have ...

Read More »

Java program for patterns and formats in java/bluej/c/c++

Java Program for format/pattern making in java/ Bluej 1 23 456 78910 This pattern is also called floyd’s triangle. You can also see Floyds triangle for N rows where n is inputted by user: Java program for floyd’s triangle [crayon-58ae0a2a75fab852798100/] OUTPUT: Tags: pattern making in java, 1 23 456 78910 pattern-format.

Read More »

java program for eliminating the multiple characters occurring in a string using string buffer functions

This java program is for eliminating repeated characters in a string step by step. class frequency{public static void main(String s){int i,z=0,max,k,j,c=0,L,a=0;L=s.length();String s1=s.toLowerCase(); // eliminating charachters can be both in uppercase and lower case this program treats both the case similarly.if(s1.charAt(0)==s.charAt(0))z=1;for(k=0;k

Read More »

Java program to find saddle point in a matrix

Saddle point- it is that element in a matrix when it is smallest in a row and largest in the same column it exist. There can be multiple saddle points and zero saddle points in a matrix. Here is a java program for you in BlueJ / Java for saddle point. [crayon-58ae0a2a7634b867080021/]   OUTPUT:   Tags: saddle point program in ...

Read More »

Multiple Inheritance in JAVA

This is the program to show multiple inheritance in Java. Actually JAVA doesn’t support any multiple inheritance but in this program we made a trick by using a extended class and interface which seems that program using multiple inheritance.  [crayon-58ae0a2a76a6d306242451/] OUTPUT

Read More »

Program for string in cross x format on given position

Program for string in x format on given contact position in the middle of your output screen  [crayon-58ae0a2a770e4130340383/] Input:   “program” , 4 Output : tags: java program for string in x format, program for string in x format at ith position.

Read More »