Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: I need help with these basic Java ?s

  1. #1
    Junior Member
    Join Date
    Oct 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I need help with these basic Java ?s

    Print (show result) of the following arrays
    1. int[ ] a = {2,4,7,10};
    2. int[ ] b = a.fill(list,7);
    3. int[ ] c = a.fill(list,1,3,8);


    What is the printout of the following code? Explain the answer
    String s1 = “Welcome to CSET 1200”
    String s2 = s1.replace(“o” , “abc”)
    String s3 = s1.substring(0, 11) + "HTML";

    System.out.println(s1)
    System.out.println(s2)
    System.out.println(s3)


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: I need help with these basic Java ?s

    And your question is what....what have you tried? What is confusing? What do YOU think the answer is?

  3. #3
    Junior Member
    Join Date
    Oct 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: I need help with these basic Java ?s

    I Just dont know how quite to answer both of the ?s

  4. #4
    Grand Poobah
    Join Date
    Mar 2011
    Posts
    1,545
    My Mood
    Grumpy
    Thanks
    0
    Thanked 167 Times in 158 Posts

    Default Re: I need help with these basic Java ?s

    Have you tried writing a simple test program to see what happens?
    Improving the world one idiot at a time!

  5. #5
    Junior Member
    Join Date
    Oct 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: I need help with these basic Java ?s

    I don't have access right now to run the program for welcome to cset 1200 if anyone could run it for me and tell me the result that would be great

  6. #6
    Grand Poobah
    Join Date
    Mar 2011
    Posts
    1,545
    My Mood
    Grumpy
    Thanks
    0
    Thanked 167 Times in 158 Posts

    Default Re: I need help with these basic Java ?s

    Are you friggin kidding me? Do your own homework!
    Improving the world one idiot at a time!

Similar Threads

  1. Basic Java
    By tope2a in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 5th, 2013, 04:06 PM
  2. Java basic Example
    By Appu14 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: September 3rd, 2012, 11:24 AM
  3. Need some JAVA basic programming help
    By joregorn in forum Java Theory & Questions
    Replies: 11
    Last Post: March 22nd, 2012, 08:30 PM
  4. Few very basic Java questions.
    By 01001010 in forum Java Theory & Questions
    Replies: 2
    Last Post: February 13th, 2010, 01:14 PM
  5. Basic Java Program Help
    By roaster in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 6th, 2009, 10:28 PM