kiran khatal
BAN USER
RepNitanaJulliana, Analyst at A9
Hello, I am Nitana and I am working as a project manager in the Softage company. I am very honest ...
Repaliciagreene771, Vashikaran mantra for get my love back at None
Hello! How are you,My name is Alicia Greene I am from London (UK). I am a Business English, Math ...
RepColaraJoshi, Floor manager at Thomes
By profession, I am Floor manager in the Thomes store. I am passionate about astrology and read tronto cards, horoscopes ...
RepNinaHedge, Android Engineer at ABC TECH SUPPORT
Hello, I am a Book writer who uses their content creation and verbal skills to produce articles, blogs or professional ...
Replamisobbeya45, Student at None
Hello there, My name is Lamis Obbeya I am from Brooklyn, New York . I am 29 years of age. I ...
Repzhenhsiungz, Android test engineer at AppPerfect
I am a financial planner . I help individuals and corporations meet their long-term financial objectives. I enjoy spending my spare ...
Reptracyremly, Anesthesiologist at Ness
I am Tracy, working as an Anesthesiologist handles surgical patients and their pain relief during procedures.Rather than my job ...
RepNellieWheeler212, None at Service Now
Hey Everyone! My name is Nellie Wheeler and I live in the constantly radiant and wonderful San Francisco, CA, and ...
Repjessealverson777, None at Student
Hi, My name is Jesse Alverson. I'm at present a third year undergrad understudy at the University of Miami ...
Repdanicook771, Employee at None
Hello Everyone,My name Dani Cook I am from London, United Kingdom. I am a Business mathematics teacher and social ...
Repkalerkant98, abc at ADP
I am DennisRue, seeking an entry level position where my strong work ethics and ability to learn quickly will contribute ...
Repmorganweiler771, Employee at None
Hello Everyone, I am Morgan Weiler I am from Mumbai, (India).I enjoy Watching TV, playing guitar, Yoga and reading ...
Repyalendatopi, Dev Lead at Alliance Global Servies
I am Yalenda , a video editor with 3+ years of experience, skilled in Premiere Pro. Seeking position with Weingarten's ...
RepAchillesDiaz, Digital marketing Experinced at Jabong
I am working as a web administrator. I have a basic understanding of tools for testing HTML, CSS validation, Kerala ...
Reprommie93544, Field Sales at Citrix Online
Roomie , an experienced group fitness instructor with the drive and knowledge and enthusiasm to apply the correct fitness techniques to ...
RepNitaniyaGrown, Animator at ASAPInfosystemsPvtLtd
I am a talented video editor with an eye for compelling stories and 3 years of experience. I committed to ...
Repirenereed98, Discount Furniture Showcase at Physical therapist aid
I'm a Physical advisor helping working at Discount Furniture Showcase . I'm likewise a film buff who partakes in ...
RepMegan Copeland, Analyst at Airbnb
Are you looking for the most recommended Bristol wedding photography service provider? Here, Danny T is a famous wedding photographer ...
RepNaomiAdams, abc at 8x8
Passionate educator for nearly 5 years with a strong desire to help students recognize the connection between learning and experience ...
Repfanniepaisley, Computer Scientist at ABC TECH SUPPORT
Fannie Parsley, and I'm working as a Cartographer. And nowadays I am doing a new experiment on best tantrik ...
RepBruceKeter, HTML Experienced at 247quickbookshelp
Bruce , a pediatrician studies psychoanalysis where I try to understand children's needs and family dynamics. To do more research ...
RepSamiyahKate, Java Experienced at Agilent Technologies
I am Samiyah, having 3 years of experience in assessing, diagnosing, screening, and preventing language, speech, and swallowing disorders. I ...
RepSharonSwann, AT&T Customer service email at A9
Bilingual, self-motivated Air Hostess with a proven record of providing excellent customer service and exceeding all corporate and personal expectations ...
RepMillaSoth, Intern at ADP
I am Milla , a dedicated Emergency Response Technician regarded for performing advanced medical procedures with a high degree of accuracy ...
Repaleasebkern, Personnel
Plant operators manage all things in an industrial plant or a power plant . They are supervising all the work . For ...
RepMoniKim, Animator at Clean Power Research
I am Moni , a reliable Special Projects/Order Filler people oriented personality with great organizational and interpersonal communication skills. I ...
RepJoseElkins, Animator at ASU
I am working as Human Resources Associates, and my duties are for obtaining, recording, and interpreting human resources information within ...
RepPamPucker, HR Executive at Adap.tv
I am Pam from Birmingham USA, A Secretary serves as a trusted personal assistant . My interest in ice skating, and ...
Repsuzikaily, Digital marketing freshers at ADP
Hi , I am Suzi , working as a dancer in the Rudo club . I have been working here since 2013 and ...
Reproseljannet75, Financial Software Developer at Abs india pvt. ltd.
Je suis jannet , une conseillère en voyages qui conseille les clients sur les options de voyage et les voyages organisés ...
Repsavannacox17, Student at None
Hi there, My name is savanna cox. I am professional content writer I am living in Toronto, Canada. i love ...
Replisaanderson1233, None at Student
Hello Everyone, My name is Lisa Anderson and I am an expert essayist, columnist, blogger and proofreader presently living in ...
RepMiaMiller, abc at A9
Experienced software engineer with a passion for developing innovative programs that expedite the efficiency and effectiveness of organizational success. Well-versed ...
Reppreetikukreja0123, i am an expert website specialist at None
Hello Everyone, My name is Preeti Kukreja from Mumbai, India. I am an Expert website specialist/ web designer/ graphic designer ...
Repkany7635, optician at AMMB
I am a detail oriented and knowledgeable optical assistant with 2 years of experience in an optometry office setting. Collect ...
RepNiaNorna, Analyst at ADP
I am an established career journalist with 15 years of writing and copy editing experience in the newsroom. Seeking to ...
Repseinarondal, Applications Developer at ABC TECH SUPPORT
I am Seina, a hardworking individual with many years of customer service experience seeking a position with a company utilizing ...
RepJudeSandin, Associate at Absolute Softech Ltd
My name is JudeSandin . I am working at Bold Ideas as a Web designer. With 5 years experience . I am ...
Repmargaratlonger, Talent Acquisition at Huawei
Hello, I am Margaret . I have been working with the company of Heilig-Meyers for the last 7 year. I guide ...
Repedenwraye, Photographic spotter at Enrich Garden Services
I'm more of a Photographic spotter than an expert at creating beautiful, functional and personalised products for teachers, mentors ...
RepFurryReign, Questions - Problem Solving Round at Cerberus Capital
Furry , An Athletic Trainer with confidence that my 7 years of experience in various organizations and industries have given me ...
Repjudithasmith175, Accountant at Akamai
Hey, my name is Terry and I completed all my study from California. And Nowadays I am working as a ...
Repbungayasorya, Accountant at BrowserStack
An archeologist is an expert on history who gains expertise through experience with historical documents and artifacts. The archaeological record ...
RepJamieWilliams, Android Engineer at Email Customer Service
My name is Jamie.and i am a Translator It's been almost 2 years since I worked in this ...
Repshushichiku, Associate at ASU
PaulKenda is a Farmworker working at Jackhammer Technologies . I am a specialist in my work here. I manage different things ...
import java.io.*;
- kiran khatal June 07, 2017import java.util.*;
public class Question_1 {
public static void main(String[] args) {
String Ifile="\\taxonomy.en-US.txt"; //input file
String Outputfile="\\Output.txt"; //output file
BufferedReader br;
FileReader fr;
File Ofile;
try
{
fr=new FileReader(Ifile);
br=new BufferedReader(fr);
Ofile=new java.io.File(Outputfile);
FileOutputStream fos=new FileOutputStream(Ofile);
PrintWriter pw=new PrintWriter(fos);
Set<String> hs=new HashSet<String>();
int StringLen=0;
String currentLine;
LinkedHashMap<String,Integer> map= new LinkedHashMap<String, Integer>();
while((currentLine= br.readLine()) != null )
{
currentLine += " >";
currentLine=currentLine.trim();
StringLen=currentLine.length();
while(StringLen>0)
{
int n=currentLine.indexOf(">", StringLen-1);
String sub=currentLine.substring(0, n);
hs.add(sub);
int ln=sub.lastIndexOf(">", n-2);
StringLen=ln;
}
for(String strcontain:hs)
{
if(map.containsKey(strcontain))
{
map.put(strcontain, map.get(strcontain)+1);
}
else
{
map.put(strcontain, 1);
}
}
hs.clear();
}
for (Map.Entry m:map.entrySet())
{
pw.println(m.getKey()+"="+m.getValue());
}
System.out.println("Output File Write Completed");
pw.flush();
pw.close();
fos.close();
br.close();
fr.close();
}
catch(Exception e)
{
System.out.println(e);
}
}
}