Click here to Skip to main content
15,666,553 members
Home / Discussions / Java
   

Java

 
AnswerRe: gui components for multipart email Pin
Richard MacCutchan18-Mar-17 22:02
mveRichard MacCutchan18-Mar-17 22:02 
GeneralRe: gui components for multipart email Pin
ashoknailwal18-Mar-17 23:32
ashoknailwal18-Mar-17 23:32 
GeneralRe: gui components for multipart email Pin
Richard MacCutchan19-Mar-17 2:42
mveRichard MacCutchan19-Mar-17 2:42 
Questiongetting error RuntimeException: instantiationException: Pin
Member 1305920814-Mar-17 12:08
Member 1305920814-Mar-17 12:08 
AnswerRe: getting error RuntimeException: instantiationException: Pin
Richard MacCutchan14-Mar-17 21:51
mveRichard MacCutchan14-Mar-17 21:51 
QuestionClass Structure (3 questions) Pin
ShikadiMaster13-Mar-17 23:09
ShikadiMaster13-Mar-17 23:09 
SuggestionRe: Class Structure (3 questions) Pin
CHill6013-Mar-17 23:15
mveCHill6013-Mar-17 23:15 
Questionto print the occurence of the unique words in a string using java-->why my counter is not working Pin
LOKENDRA YADAV12-Mar-17 0:58
LOKENDRA YADAV12-Mar-17 0:58 
import java.util.*;
public class Test19 {

public static void main(String[] args) {
String str1="HELLO JAVA HELLO PYTHON";
int count=0;
String str2[]=str1.split(" ");
for(int i=0;i<str2.length;i++){
for(int k=0;k>0;k++){
if(str2[i]!=str2[k]){

count++;

}//if

}//for k
System.out.println(str2[i]+"--> "+count);
}//for i

}
}
--------------------------------------------undesired output-------
HELLO--> 0
JAVA--> 0
HELLO--> 0
PYTHON--> 0
--------------------------------------want like this output-------
JAVA--> 1
PYTHON--> 1
AnswerRe: to print the occurence of the unique words in a string using java-->why my counter is not working Pin
Richard MacCutchan12-Mar-17 21:50
mveRichard MacCutchan12-Mar-17 21:50 
QuestionCreate an HTML file AddCookies.html which contains four text boxes . Pin
Member 1270377511-Mar-17 16:51
Member 1270377511-Mar-17 16:51 
AnswerRe: Create an HTML file AddCookies.html which contains four text boxes . Pin
Richard MacCutchan11-Mar-17 22:06
mveRichard MacCutchan11-Mar-17 22:06 
Questionprogram to find the last occurence of a character in a string without using built in function Pin
LOKENDRA YADAV8-Mar-17 22:15
LOKENDRA YADAV8-Mar-17 22:15 
AnswerRe: program to find the last occurence of a character in a string without using built in function Pin
Jochen Arndt8-Mar-17 22:36
professionalJochen Arndt8-Mar-17 22:36 
AnswerRe: program to find the last occurence of a character in a string without using built in function Pin
Patrice T9-Mar-17 15:34
mvePatrice T9-Mar-17 15:34 
AnswerRe: program to find the last occurence of a character in a string without using built in function Pin
Member 1209512219-Mar-17 22:37
Member 1209512219-Mar-17 22:37 
QuestionGetting javax.xml.ws.soap.SOAPFaultException: Error in deserializing body of request message for operation xxxx. Pin
Member 130427416-Mar-17 19:53
Member 130427416-Mar-17 19:53 
QuestionRe: Getting javax.xml.ws.soap.SOAPFaultException: Error in deserializing body of request message for operation xxxx. Pin
Richard MacCutchan6-Mar-17 22:25
mveRichard MacCutchan6-Mar-17 22:25 
QuestionAudio Steganography Pin
Member 129105895-Mar-17 21:27
Member 129105895-Mar-17 21:27 
AnswerRe: Audio Steganography Pin
Richard MacCutchan5-Mar-17 22:27
mveRichard MacCutchan5-Mar-17 22:27 
GeneralRe: Audio Steganography Pin
Member 129105895-Mar-17 22:33
Member 129105895-Mar-17 22:33 
GeneralRe: Audio Steganography Pin
Richard MacCutchan5-Mar-17 22:40
mveRichard MacCutchan5-Mar-17 22:40 
GeneralRe: Audio Steganography Pin
Member 129105895-Mar-17 22:49
Member 129105895-Mar-17 22:49 
GeneralRe: Audio Steganography Pin
Richard MacCutchan5-Mar-17 22:54
mveRichard MacCutchan5-Mar-17 22:54 
GeneralRe: Audio Steganography Pin
Member 129105895-Mar-17 23:13
Member 129105895-Mar-17 23:13 
GeneralRe: Audio Steganography Pin
Richard MacCutchan5-Mar-17 23:27
mveRichard MacCutchan5-Mar-17 23:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.