Hello good day guys. I just want to ask for help in my java python. I am just new in this language.
MY first java language is java. However, for me to make it easier to code in python, i need to code it in java first and then convert after. But i am confused working with arrays in python, help me guys. Thank you.
import java.util.*;
public class sample {
static Scanner scan = new Scanner(System.in);
public static void main (String args[]){
sample();
}
public static void sample(){
System.out.println("Enter numbers : ");
String input[] = new String[5];
for ( int i = 0 ; i < input.length; i++){
input[i] = scan.nextLine();
}
for ( int i = 0 ; i < input.length; i++){
System.out.println(input[i]);
}
}
}