Comment on Tutorial - Using substring( ) in Java By Fazal



Comment Added by : bond

Comment Added at : 2014-08-16 17:02:10

Comment on Tutorial : Using substring( ) in Java By Fazal
import java.io.*;
class CharaaDemofromnet
{
public static void main(String args[])throws IOException
{

char arr[]={'a','b','c'};
String s = new String(arr);
int v=s.length();
for(int k=0;k<v;k++)
{
for(int j=0;j<v;j++)
{
for(int i=0;i<v-j-k;i++)
{
System.out.print(arr[i]);
}
System.out.println();
}
}
}
}


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. very nice approach sir....
u make it very e

View Tutorial          By: aamir at 2011-06-15 01:29:22

2. thanks a lot ..
View Tutorial          By: indra at 2009-03-25 15:40:03

3. Write a program using one-dimensional array using
View Tutorial          By: Ike Conte at 2015-09-22 10:49:28

4. wats the output ?
View Tutorial          By: siri at 2011-10-25 08:20:10

5. This is an old method although it works. The bette
View Tutorial          By: Emiley at 2013-01-11 03:56:02

6. Thank you so much
View Tutorial          By: Daniel at 2011-02-14 22:47:05

7. Hello, your post helped me a lot with solving my o
View Tutorial          By: Florian Brunner at 2008-06-26 08:59:42

8. In this code what should i add in place of "y
View Tutorial          By: manju at 2011-11-10 09:01:50

9. thanks for providing information in a simple langu
View Tutorial          By: shailaja at 2010-09-01 03:50:41

10. i am getting the erorr such as:::::
Error l

View Tutorial          By: supriyo at 2011-02-21 13:17:00