import java.util.*;
public class CheckPalindrome{
public static void main(String[]args){
Scanner input=new Scanner(System.in);
System.out.print("Enter String: ");
String st=input.next();
String...
Type: Posts; User: Faha
import java.util.*;
public class CheckPalindrome{
public static void main(String[]args){
Scanner input=new Scanner(System.in);
System.out.print("Enter String: ");
String st=input.next();
String...
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...
For Example, the following is the queue.
5 2 56 12 4 21
if the given element is 12, the output should be:
5 2 56 12
IF the given element is 78, the output should be:
No element before 78
thanx 4 the edit..
that what i did but still there is missing thing
public Object printDepth(int a)
{
if(!isEmpty())
{
for(int i=front;i!=rear+1;i++)
Hello this is my Question in queue using array...
.............................................................................
the task is to create a queue application using array....
when you finish ur program
and run it
it will show you down the out put!
how can print it:(from ther
plzz
tell me how can i print the output from jcreator???
Ok I'll try it with my jcrater and finish all this then I will be answer you what happen
Thannnnnx for helpppppp mmeee
Yss only b extends from a and other from b
Ok it's all about to create 4 class
Class a , class b derived from a and c derived from b and test class
Speed is an instance variable in class b and c.
The method are :
Start() -a method...
Hi all.. I wish that u cake hlp me plllzzzzzzzzzzzz,, don't solve for me ,,,just teach me how to make it !!!! Plz I'll wait for some Volunteer