I need logic for the following program. please help me
Question :
Accept 2 strings and check how many times the second string is in the first string.
Example1:
Enter main string : This is...
Type: Posts; User: arunjib
I need logic for the following program. please help me
Question :
Accept 2 strings and check how many times the second string is in the first string.
Example1:
Enter main string : This is...
Very useful suggestion. thnx
Though i can understand the error, i cannot solve. if anybody solve it, i would be helpfull.
i can understand why the output comming like this. but i am unable to solve the problem. please help me
i can understand why the output comming like this. but i am unable to solve the problem. please help me
i cannot find out the error in output
Input : arunjib
required output : ArunjiB
output getting : ABarunjib
please help me
public class caps
{
Thank you Very Much. My problem is now solved.
I am feeling shy now!
I changed my code as follows... but its incorrect. please help me
public void display()
{
if(this.validate()) // using the this keyword.
{
...
Sorry! i cannot apply the tecnique in my program. please help me
i have made my code as follows... now the question is how can i display time as 12 hour format?
public void display()
{
// if(hh>12)
// hh=hh-12;
// Time ob = new...
Thank you for pointing out the problems. I would be more greatful if you make the necessary correction on my codes as I am very new in Java programs.
Thank you very much for helping me. now i have only one problem on my program. If i enter time >23, it should display "Invalid Format". but its is showing the time subtracting 12.
Here is the final...
Please help me, I cannot find the error in the following code. Boolean always returs true in the following program.
class time
{
int hh, mm, ss;
public time()
{
hh = 0;...
public class date
{
public static void main(String args[]) throws Exception
{
try{
SimpleDateFormat form = new SimpleDateFormat("dd/MM/yyyy");
Date date = form.parse("31/11/2009");...
sorry sir i cannot impliment the above code in my class please help me
public class date
{
public static void main(String args[]) throws Exception
{
try{
i want to input a date in dd/mm/yyyy format and validate it. please help me
[eg. inputed ate is 12/31/2011... it is not a valid datein the above format.]
thanks.......................
is there any help from anybody?
i want to get following out for a java program... how i should start my study?
output of the program:
How many stars you want to print in 1st row ? 7
*******
******
*****
Thank you sir for your kind co-operation and giving proper guide. I i get permission i want to start another problem here. Can I?
Thank you sir,
I was really depressed on the problem. Atlast i could solve my problem with help of my teacher. Thank you once more for your support. I hope i shall try to read and understand your...
Do you know A, B, C, D .... Z ? Can you remember how first time you learnt alphabet ? Was you thinking or reading reapedly ? No ! you just taken help from your teacher (or mom or dad). So as i cannot...
sir i want to print spaces using for loop. but i am unable to do that. as i am not strong on nested for loop. may i get a complete help from this site/thread without thinking more? if so i shall be...
I have made a code to print the pattern as
*****
****
***
as follows
import java.io.*;
Thank u sir. i am sorry for doing that. now my question is posted in this thread. this thread is created by me. hope i shall get this problem solved through this forum.
regards
arunjib