instruction
stringclasses
1 value
input
stringclasses
10 values
output
stringclasses
10 values
Check if the requirement is linked to the method
REQUIREMENT: Calculate square root METHOD: public double sqrt(double number) {return Math.sqrt(number);}
Yes, the requirement is linked with the sqrt method.
Check if the requirement is linked to the method
REQUIREMENT: Concatenate strings METHOD: public String concat(String str1, String str2) {return str1 + str2;}
Yes, the requirement is linked with the concat method.
Check if the requirement is linked to the method
REQUIREMENT: Find the maximum of two numbers METHOD: public int max(int num1, int num2) {return num1 > num2 ? num1 : num2;}
Yes, the requirement is linked with the max method.
Check if the requirement is linked to the method
REQUIREMENT: Sort an array METHOD: public void sortArray(int[] arr) {Arrays.sort(arr);}
Yes, the requirement is linked with the sortArray method.
Check if the requirement is linked to the method
REQUIREMENT: Convert temperature from Celsius to Fahrenheit METHOD: public double celsiusToFahrenheit(double celsius) {return (celsius * 9/5) + 32;}
Yes, the requirement is linked with the celsiusToFahrenheit method.
Check if the requirement is linked to the method
REQUIREMENT: Check if a number is prime METHOD: public boolean isPrime(int number) { /* Prime checking logic */ }
Yes, the requirement is linked with the isPrime method.
Check if the requirement is linked to the method
REQUIREMENT: Reverse a string METHOD: public String reverseString(String str) { /* Reversing logic */ }
Yes, the requirement is linked with the reverseString method.
Check if the requirement is linked to the method
REQUIREMENT: Calculate factorial METHOD: public int factorial(int n) { /* Factorial logic */ }
Yes, the requirement is linked with the factorial method.
Check if the requirement is linked to the method
REQUIREMENT: Convert miles to kilometers METHOD: public double milesToKilometers(double miles) {return miles * 1.60934;}
Yes, the requirement is linked with the milesToKilometers method.
Check if the requirement is linked to the method
REQUIREMENT: Generate random number METHOD: public int randomInt(int min, int max) { /* Random number generation logic */ }
Yes, the requirement is linked with the randomInt method.
Check if the requirement is linked to the method
REQUIREMENT: Calculate square root METHOD: public double sqrt(double number) {return Math.sqrt(number);}
Yes, the requirement is linked with the sqrt method.
Check if the requirement is linked to the method
REQUIREMENT: Concatenate strings METHOD: public String concat(String str1, String str2) {return str1 + str2;}
Yes, the requirement is linked with the concat method.
Check if the requirement is linked to the method
REQUIREMENT: Find the maximum of two numbers METHOD: public int max(int num1, int num2) {return num1 > num2 ? num1 : num2;}
Yes, the requirement is linked with the max method.
Check if the requirement is linked to the method
REQUIREMENT: Sort an array METHOD: public void sortArray(int[] arr) {Arrays.sort(arr);}
Yes, the requirement is linked with the sortArray method.
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
0
Edit dataset card