Search:

Type: Posts; User: snehasishmohanta@gmail.co

Search: Search took 0.43 seconds.

  1. Replies
    5
    Views
    28

    Re: thread

    if we write synchronized before any method it will get synchronized. but in this program what is the solution i am not getting.
  2. Replies
    5
    Views
    28

    Re: thread

    yea i already did that .but i am stuck in the next part means synchronization of method.please help me to write that code.


    actually i wrote the below code.



    but i am getting o/p-
  3. Replies
    5
    Views
    28

    thread

    i want to create two thread one thread will print odd number and another thread will print even number. but the number should be in a sequence like
    help me.
  4. Replies
    22
    Views
    53

    Re: swapping.

    yes i know. but from my point of view some special differences are.



    if any more important thing there kindly share with me.
  5. Replies
    22
    Views
    53

    Re: swapping.

    sir , i faced a strange problem. i went for an interview. that interviewer asked me



    i was unable to answer properly. any how i managed i answered
  6. Replies
    22
    Views
    53

    Re: swapping.

    i think you are saying about the for loop. yes i got that.

    --- Update ---

    you are looking very helpful person. can i have your facebook profile???

    --- Update ---

    many many thanks to you.....
  7. Replies
    22
    Views
    53

    Re: swapping.

    it's looking more complicated . i am not getting what is 9 & 5. :confused:
  8. Replies
    22
    Views
    53

    Re: swapping.

    that thing i am not getting... how to use the loop... please help me.
    how to put index in a loop.
  9. Replies
    22
    Views
    53

    Re: swapping.

    sorry for the silly question. actually i am coding from morning now it's 8.00 pm. i think codes are fighting on my head. i think i need little free time to brush up my mind:P. sorry to take your...
  10. Replies
    22
    Views
    53

    Re: swapping.

    yea i tried. but after splitting the string i stored in the array and then swapped the first element with the last element.after that i got confused again for converting that array element to...
  11. Replies
    22
    Views
    53

    Re: swapping.

    if i will get the i/p through scanner. how can i get the last element of that array
    let the array name is i
    if the length of the array is n


    will it work??

    --- Update ---

    thanks.. but...
  12. Replies
    22
    Views
    53

    Re: swapping.

    actually i am not getting the logic for swapping.... actually the question was a big question and its the small part in which i am getting problem.
    i solved all the part.but stuck on this part. so i...
  13. Replies
    22
    Views
    53

    Re: swapping.

    first word would be swapped with last word and all the alternate word.
    e.g
    i/p-
    o/p-


    there are 6 word:- 1st place will be swapped with 6th position
    ...
  14. Replies
    22
    Views
    53

    Re: swapping.

    yea that i have already done... but after that i am getting confused how to swap. can you write the looping code for swapping.
  15. Replies
    22
    Views
    53

    swapping.

    i need a help...
    i just need the logic..

    i want to swap the word. how could i be able to swap..

    for example:-
    I/P:-

    O/P:-
  16. Replies
    1
    Views
    13

    String objects

    please help me with this



    String s1="welcome";

    String s1=new String("welcome");
  17. Re: Write a program to reverse each word in line(sentence)?

    i got it thanks for your help everyone

    import java.util.Scanner;
    public class SentenceReverse
    {
    public static void main(String[] args)
    {
    Scanner scn = new...
  18. Write a program to reverse each word in line(sentence)?

    i am getting problem in this program please help me..
    Write a program to reverse each word in line(sentence)?

    if i will give input as a


    o/p would be --
    ih woh era uoy
  19. Re: Write a program to reverse each word in line(sentence)?

    import java.util.Scanner;

    public class Demo3 {

    public static void main(String[] args)
    {
    Scanner scn=new Scanner(System.in);
    System.out.println("write a sentence");
    ...
  20. Write a program to reverse each word in line(sentence)?

    i am getting problem in this program plz help me.. :(
    Write a program to reverse each word in line(sentence)?
  21. Re: Write a program to convert all vowels to capital letter in a sentence?

    thanks for your valuable tips... i got it.....


    import java.util.Scanner;

    public class Demo2
    {
    public static void main(String[] args)
    {
    Scanner scn=new Scanner(System.in);
  22. Write a program to convert all vowels to capital letter in a sentence?

    i am new to programming skills it may be silly question for experience but for me it's new thing. actually i tried a lot but i am facing problem when i trying to take input through Scanner.
    if i...
Results 1 to 22 of 22