Selenium with Java Tutorial For Beginners Day - 3

Selenium Tutorial Java Day - 3 49 min

  

This tutorial for selenium java covers java fundamentals of arrays and functions. How arrays can help you store test data and how to build reusable functions.

QA Section

Speak Your Mind


Khushaliben Patel

Hey Team, where I can find practice question list ?

Reply

Asha

I cannot find exercise for Day 3?

Reply

Asha

Can someone please let me know if the program logic is correct //Write the method printFullName of student which prints the full name of a student public class function { public static void main(String[] args) { String i=student("Asha Shamaiah"); System.out.println("Student full name is " + i); } public static String student(String name) { System.out.println(); return name; } }

Reply

Revathy

String str="order is completed. Your Transaction id is 122344566"; String myresult[]=str.split("order"); System.out.println(myresult.length); the length returned is 2. shouldn't the length be 1 cos i dont have any word before "order". and when i print to check what it is stored in result[0] and result[1] . the same line gets printed.

Reply

Richa

If i have not registered to the site and if i am accessing the free videos cant i have access to the exercises?

Reply

Gautam

I am getting error for this code. I created a function to display odd elements in an array. When I called the function it is giving error. How to pass array for odd function from main. Please help. public class oddposition { public static void main(String[] args) { odd(10,20,30,40); } } public static void odd(int arr[]) { for(int i =0;i Reply

  • Trainer

    Gautam...Login to your account. You will see a support forum. Please post the question there along with java file.

    Reply

gautam

Hi, I can see only quiz but no assignment.

Reply
  • Trainer

    Assignments will come in further modules

    Reply
    • Yasothai

      Hi, in which module can we find the assignments/exercise please? Thanks.

      Reply

ANU

for (String s : arr) { System.out.println(s); } This is throwing an error java 31. Could you please help.

Reply
  • Trainer

    Make sure you have JDK configured Properly

    Reply