Untitled
unknown
plain_text
2 years ago
1.0 kB
9
Indexable
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String args[] ) throws Exception {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
Scanner sc=new Scanner(System.in);
int n = sc.nextInt();
for(int i =0;i<n;i++)
{
int a=sc.nextInt(); sc.nextLine();
String b= sc.nextLine();
String c= sc.nextLine();
double d= sc.nextDouble(); sc.nextLine();
arr[i] = Bike(a,b,c,d);
}
}
}
class Bike{
int bikeNo;
String bikeName;
String category;
double price;
public Bike(int bikeNo, String bikeName, String category, double price){
this.bikeNo= bikeNo;
this.bikeName=bikeName;
this.category= category;
this.price= price;
}
}Editor is loading...