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.
I cannot find exercise for Day 3?
ReplyCan 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; } }
ReplyString 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.
ReplyIf i have not registered to the site and if i am accessing the free videos cant i have access to the exercises?
ReplyI 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 Gautam...Login to your account. You will see a support forum. Please post the question there along with java file. Hi,
I can see only quiz but no assignment. Assignments will come in further modules Hi, in which module can we find the assignments/exercise please? Thanks. for (String s : arr)
{
System.out.println(s);
}
This is throwing an error java 31. Could you please help. Make sure you have JDK configured ProperlySpeak Your Mind
Trainer
gautam
Speak Your Mind
Trainer
Speak Your Mind
Yasothai
Speak Your Mind
ANU
Speak Your Mind
Trainer
Speak Your Mind
Speak Your Mind