HELP!! wat is wrong with it?
Hi I've been workin on a project, and it seems something is wrong with this code... i honestly cannot figure it out...
here it is :
Uses the following methods:
public static boolean areEquivalent (String word1, String word2)
This method reutrns true or false depending on whether the two input arguments hae equal numbers of A's, B's, and C's (in any order.) You may assume that each string contains only these lowercase characters, in any order or quantity. For example, areEquivalent("abcbca","ccbbaa... ) would return true, because each input string contains 2 as, 2 bs, and 2cs.
this is the code i have so far:
public static boolean areEquivalent(String word1, String word2)
{
int count = 0;
String line;
{
for ( int i = 0; i<char.length; i++)
{
saasd
}
if count = as + word 2
true
else count = bs + word 2
true
else count = cs + word 2
true
else as==bs==cs
return true
}
}>

