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. i need help in java
View Tutorial          By: arjun tanwar at 2010-02-17 20:58:55

2. I dont know the reason why have a exception!

View Tutorial          By: Nguyen Tien Viet at 2008-04-05 06:01:50

3. Hi, I have mobile application developed in java w
View Tutorial          By: Meenu at 2008-12-30 02:46:54

4. Thanks for the code.

But I m having

View Tutorial          By: Mudassir at 2009-04-14 07:00:53

5. I am java developer and interested to write scjp e
View Tutorial          By: Parvathi at 2013-07-05 14:24:08

6. your second last example in above code (Character
View Tutorial          By: rupam shaw at 2013-04-24 08:36:05

7. Thanks for your nice article.I learned a lot
View Tutorial          By: Mahyar at 2012-08-12 12:09:36

8. Hi, You can use a javascript array. Which means wh
View Tutorial          By: Mashoud at 2008-05-04 02:54:38

9. And how did you do that ?
Can you share it

View Tutorial          By: Arsenio at 2009-07-18 23:01:00

10. Nice explaination.. But wats the use of it? Can i
View Tutorial          By: kavita at 2013-04-04 07:10:14