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. me too
View Tutorial          By: bellyjoy at 2010-05-07 03:14:14

2. i need scjp questions and information
View Tutorial          By: raja at 2010-03-29 08:05:35

3. thanks for suppporting us
View Tutorial          By: sonia at 2010-11-29 00:46:56

4. could you send me a code for a music video mobile
View Tutorial          By: Christian at 2009-08-28 23:03:45

5. Very clearly explained...
View Tutorial          By: Bina at 2010-04-08 06:56:37

6. i want to know about basic requirement for jdbc ,
View Tutorial          By: Amit sharma at 2009-03-19 04:10:24

7. You explained the this Keyword very well.
&

View Tutorial          By: Karan at 2012-12-04 11:27:35

8. I tried the first option i.e for refresh use Forwa
View Tutorial          By: dinesh at 2009-07-31 05:31:23

9. pls send to me example about stacks
becaus

View Tutorial          By: suliman at 2011-12-10 08:02:01

10. I have altered the code as described (xml addition
View Tutorial          By: Spijker at 2015-10-14 12:27:47