java


How can i to make anagram program using two character Arraylists?


this is the Code i have, what should i do ?
It's not even a String. it use Arraylist.
import java.util.ArrayList;
import java.util.Collections;
public class ArrayCheck {
public boolean isAnagram(ArrayList<Character> arr1, ArrayList<Character> arr2) {
}
}
Ok. I got the impression that you are kind of lost. Hence to get you started here how you may approach your task:
define a dictionary containing all words you will accept.
make sure the newly created string (in your case I guess arr2) is composed of the same characters as the original word (in your case I guess arr1)
if your validation succeeds, lookup the newly created string in your dictionary and if it exists, it is an anagram. Otherwise it is not.

Related Links

Adding Meta-Data to Array Instances
is it possible to add multi-tenant features to a java application using hibernate 4 and EJB 3.1? [closed]
#Startup #Singleton instantiated twice in WebLogic (EJB 3.1)
Passing args[] to java app with spaces
Make equinox verify bundles
SSLServerSocket accepts SSLSocket client in thread, is there a maximun?
How to use POMs as a dependency in Maven?
How to display SVN revision stored in war manifest.mf file on Tapestry5 page?
Dynamic adding input field using p:commandButton?
Exception in thread “main” org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.mycompany.Contact#8]
Convert char* to jstring in JNI, when char* is passed using va_arg
Send data to REST service from java
count number of certain value occurances in a string
How to run Jacoco with Java 7 and spring-instrument?
JAAS Policy in Eclipse RCP
Android Button with Drawable - Padding

Categories

HOME
ibm-bluemix
log4j
netsuite
keycloak
c#-4.0
iterator
sd-card
mean-stack
rsyslog
spring-cloud-stream
tizen-web-app
c#-2.0
ckeditor
webrequest
elasticsearch-hadoop
gnupg
volttron
remote-access
size
swingx
swiftlint
accessor
wkwebview
tibco-mdm
android-widget
opentype
subdomains
file-rename
nameservers
scorm2004
commit
subset-sum
azure-sql-database
xmlreader
main
serve
lto
serverside-rendering
hue
ibpy
bootstrap-dialog
modelmapper
apple-news
dotnetzip
diagnostics
pg-dump
flutterwave
android-fonts
intrusion-detection
mathematica-frontend
etsy
multiple-regression
ptrace
wapiti
tcpserver
cisco-ios
angular-local-storage
wordpress-theme-customize
xojo
mesa
android-radiobutton
jubula
mechanize-ruby
braille
ril
specification-pattern
word-processor
pysimplesoap
cascalog
onsubmit
bubble-chart
custom-backend
transactionscope
spyware
psi
xmlspy
hamachi
tomcat-valve
krl
forums
perfect-hash
firefox4
swing-app-framework
privilege
text-coloring
scripting-languages

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App