how can i write this code using stacks "java" ?
Type: Posts; User: Faha
how can i write this code using stacks "java" ?
/* Recursive Function*/
gcd(int n,int m)
{ if(m<=n && n%m == 0)
return m;
if(n < m)
return gcd(m,n);
else
return gcd(m,n%m);
}
public static void main(String[] args)
{
String input = "";
String str = "";
Scanner scan = new Scanner(System.in);
System.out.print("Enter a string: ");
while(true)
{
str =...
i dono how to start or what to do for first step?
can u answer this Q?
1-,
Hi all,
can anyone help me with this? i need to know the java progrmmae for it ..
_write a program that determines whether an input string is palindrome;that is whether it can be...