Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~583 People Reached
Favorite Forums
Favorite Tags
java x 6
Member Avatar for bhavna13

[CODE]public class duplicate { public static void main(String[] args)throws IOException { System.out.println("Enter words separated by spaces ('.' to quit):"); Set<String> s = new HashSet<String>(); Scanner input = new Scanner(System.in); while (true) { String token = input.next(); if (".".equals(token)) break; if (!s.add(token)) System.out.println("Duplicate detected: " + token); } System.out.println(s.size() + " …

Member Avatar for christeenajose
0
176
Member Avatar for bhavna13

i need a code to merge two ordered list of objects of integers.the method should receive references to each of the list objects to be merged , and should return a reference to merged list object. pls help....

Member Avatar for masijade
0
168
Member Avatar for bhavna13

I have written this code to determine duplicate words in the string. but its not working. plz help.... i am getting error in line 19.[code]import java.util.*; import java.util.Scanner; public class duplicate { public static void main(String[] args) { Scanner input = new Scanner(System.in); int n = input.nextInt(); System.out.println ("Input length …

Member Avatar for bhavna13
0
142
Member Avatar for jiwatramani

hello ! its stupid to ask this question......but has anyone implemented hash maps in java ? can someone please post a code here. im really unable to implement it and unless i dont do that, it'll be very difficult to understand its concept. thank you.

Member Avatar for Ezzaral
0
97