JAVA APPLICATION

Ads

 
 

Share on Google+Share on Google+

Elaine
JAVA APPLICATION
1 Answer(s)      8 years ago
Posted in : Java Beginners
Ads
View Answers

November 27, 2008 at 12:10 AM


Hi friend,

Code to solve the problem :

public class Data
{
public static void main(String[] args)
{
String str = "Trieste,South Korea,Melbourne,San Francisco,Seattle,Dammam";

System.out.println(str);
String strAr[] = str.split(",");
int totalWords = strAr.length;
System.out.println("Total Words : " + totalWords);
for(int i=0;i<totalWords;i++)
{

if(strAr[i].startsWith("S"))
{
System.out.println("Words start with S : " + strAr[i]);
}


int count=0;
for(int j=0;j<strAr[i].length();j++)
{

if(strAr[i].charAt(j)=='m')
{

count++;
}
}
if(count>1)
{
System.out.println("More then one m in " + strAr[i]);
}
if(strAr[i].endsWith("e"))
{
System.out.println("Words end with e : " + strAr[i]);
}
}
}
}

For more information on Java visit to :

http://www.roseindia.net/java/

Thanks


Ads









Related Tutorials/Questions & Answers:
Java Application
Java Application  Hi, What is the applications of Java in development of software? What type of applications can be developed using Java programming Language? Can anyone tell me the url for downloading sample projects in Java
Java Client Application example
Java Client Application example  Java Client Application example
Advertisements
Java Client Application
Java Client Application  Java Client Application
Java application - Java Beginners
Java application  Write a Java GUI application called Index.java that inputs several lines of text and a search character and uses String method indexOf to determine the number of occurrences of the character in the text
Java HTML Client Application
Java HTML Client Application  Java HTML Client Application
Batch file for java application
Batch file for java application  please tell me how to create the batch file for java application(using swings).the application is created with netbeans
java reminder Application
java reminder Application  Create an awt application which imitates a reminder application,that stores notes and specify date and time to be reminded
java reminder Application
java reminder Application  Create an awt application which imitates a reminder application,that stores notes and specify date and time to be reminded
JAVA APPLICATION - Java Beginners
JAVA APPLICATION   Hi, I have this question and I'm stuck. Please guide me? Thanks. Write a Java application to implement the program logic... with e : " + strAr[i]); } } } } For more information on Java visit
Fingerprint application with Java
Fingerprint application with Java  Hi, How to create fingerprint application with Java? Thanks   Hi, There are many API in Java which... application with Java. Here are few APIs: http://www.griaulebiometrics.com/en-us
Write a java application program........?
Write a java application program........?  Welcome every One : I have Q in Java? Q : Write a java application program that reads 20 integer numbers input by the user and prints how many numbers > 100 and how many numbers
java application - Framework
java application   Hi How to make .exe or a plateform independent executable file( i think its jar in case of java) of a java code. Thnx
java Application to java Applet
java Application to java Applet  sorry Java master disturb again how can i modify below this Java application to applet because in swtich case i had put this countinue selection source code to make user choosing so hope can
Fax service in Java application.
Fax service in Java application.  Hello, I want to develop a Java application to send fax to any destination fax numbers. Anyone who knows about this, please tell how I can do this. Is there any free libraries
Java application - Java Beginners
Java application  Dear sir, I Designed a Window Throung Swing component Using JDBC. My Problem is that How and What component may used... the following link: http://www.roseindia.net/java/example/java/swing/Print.shtml Hope
Drools Application in Java
Drools Application in Java  when I have make a drools application using java and eclipse i have a facing a error Unable to instantiate service for Class 'org.drools.builder.KnowledgeBuilderFactoryService' I was searching
Java application PLZ ?
Java application PLZ ?  Write an application that demonstrates each of the following methods, based on the statement String dedicate = ?Dedicated to making your event a most memorable one:; indexOf(?D?) charAt(15) endsWith(one
chat application - Java Beginners
chat application  i hv created a chat application , but i hav facing problem when i run it in lan , pc ping but apllication doent giv ressponce plz help for these if some one have work on java chat application my email id
Distributed application and java
Distributed application and java  Hi, Am about to develop a Java swing application. This software will be used by 20 branch offices and every... like to go forward with the Java swing application only for this. And the way
Java web Application
Java web Application  Hi! I have developed a java web application project using netbean IDE with glassfish server. My question is how to create a runnable file from this. How can we make it to a single file? I think it is war
Fingeprint matching in java application
Fingeprint matching in java application  I am developing a java application which require fingerprint identification and verification. It is a webservice application. following considration we have to take in to mind. 1. if I am
Problem in uploading java application
Problem in uploading java application  I have uploaded my java application (folder created under webapps) using Filezilla FtpClient.Application... application it is showing javax.servlet.ServletException: Parse Error in JSP page
Java application Help?
Java application Help?  Write an application that accepts a users password from the keyboard. When the entered password is less then six characters more then 10 characters, or does not contain at lease one letter and one digit
Constructing Application of Java
Constructing Application of Java   Hi,I am doing project on java as front end and database as back end.I completed it almost on my computer but now I want to distribute it to some other computer.so have to convert the java source
java web application - Ant
java web application  hai, iam new to J2EE. i've installed jdk... tell me the steps to build and deploy a small web application on MyEclipse?(like HelloWorld).Please tell me the directory structure to place my java classes
Java application that uses the classes and
Java application that uses the classes and   i have this class diagram with three classes: Curriculum, Course, and Lecture. Your class diagram...) I wish Write a Java application that uses the classes and methods above
Java application - JDBC
Java application  Seasons greetings, I successfully designed the Food festival application using the help rosenet team rendered but it is not exactly the specification i said.so i altered it.I thank rosenet team for their timely
Java application help!
Java application help!  In Deep Water Associates operates a business... (based on the fill-up time) for a pool. Write an application that prompts the user...-up price. Save the application as Swimming.java. Parameter Fee for cleaning Pool
Java application Help?
Java application Help?  Write an application that can hold five doubles in an array. Display the doubles from first to last, and then display the doubles from last to first. Save the file as DblArray.java. Use the logic
online test application in java
Online Test Application Table Of Contents Introduction To Application Database Design Creating Data Access Object (DAO) Design Pattern Creating Views Writing Actions Mapping Application Admin Module User Module Download
Java Spring Desktop application
Java Spring Desktop application  Hi i am developing a desktop java spring application..It has many Jframes forms and classes...How to close one Jframe from another..Please tell... First jframe package desktopapplication2
Tutorials   
Java Spring Hibernate Struts Training What type of programming language is Java? How do beginners learn about Java? ClassNotFoundException HttpRequestInterceptor java.lang.noclassdeffounderror: org/apache/http/httprequest noclassdeffounderror: org/apache/http/client/methods/httpurirequest java.lang.NoClassDefFoundError: org/apache/http/client/HttpClient How do I resolve this Java Class not found exception? httpclient java.lang.NoClassDefFoundError Apache Commons ioutils maven dependency Read/Convert an inputStream to a String What is the meaning of Java Platform? Why Java is a platform independent language? What is the benefits of learning Core Java? Which technology should I learn after Java? What is array in java with example? How to Convert ArrayList to Array? How to substring in Java? How to format number in Java? What is instance variable in Java? How to download MySQL JDBC driver? What is Calendar class in Java? Which is the best Java tutorials for beginners? How to rename a file in Java? How to delete file in Java code? How to get day from date in Java using Calendar? How to get day of week in Java? How to calculate Date Difference in Java? How to compare date in Java? How to declare array in Java? How to calculate average of array in Java? What is Array in Java? write a java program to find the summation of all the integers entered on command line Sum of two numbers using command line arguments in Java How to create and use Array in Java? How to pass command line arguments in Java? How to create Applet Hello World? Appending String efficiently in Java How to append String in Java? How to list even numbers between 1 and 100? How to add BigDecimal in Java? What is Abstraction In Java? Which is best Beginners Java Tutorial? What is java.util package? Create list from array in Java Filter collection in Java 8 What is the best way to filter a Java Collection? Easy way to transform Collection to Array? How to convert Collection to Array in Java? What are Basic Java Language Elements? Advanced Java Tutorials in 2017

Ads

 
Advertisement null

Ads