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



Ask a Question

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. How do use qsort to sort lines in text file?
View Tutorial          By: kenny at 2008-11-18 08:59:55

2. sooooooooooooooooo gr8 jop!!
View Tutorial          By: monti at 2011-06-14 08:40:55

3. thank u it hlep me a lot gr8.
View Tutorial          By: harish at 2012-03-31 14:34:50

4. What is the difference between an Interface and an
View Tutorial          By: RAJA at 2015-06-26 17:28:31

5. Hello MR, I was running sms package to send sms, a
View Tutorial          By: Ronized at 2008-12-29 16:53:33

6. Good Tutorial.
Thanks.

View Tutorial          By: Oki Wicaksono at 2012-05-29 04:09:05

7. can u please send me the code for sending sms from
View Tutorial          By: Vicky at 2008-03-20 02:34:27

8. Hi,

I have a error like the import

View Tutorial          By: manigandavenkatesh at 2015-02-12 05:52:05

9. Nice ,Easy to understand
View Tutorial          By: Jomon at 2009-06-30 00:56:48

10. Thanks! Very helpful in creating a program i am tr
View Tutorial          By: BHaos at 2014-12-05 16:32:53