@@ -90,49 +90,50 @@ public static long getPrefix(long number, int k)
9090*/
9191
9292public class CreditCard {
93+
9394 public static void main (String [] args ) {
9495 // write code here
9596 }
96-
97- /** Returns true if the card number is valid */
98- public static boolean isValid (long number ) {
99- return false ;
100- }
101-
102- /** Returns the sum of the doubled even-place digits, from right to left */
103- public static int sumOfDoubleEvenPlace (long number ) {
104- return 0 ;
105- }
106-
107- /**
108- * Returns the given number if it is a single digit,
109- * otherwise return the sum of the two digits
110- */
111- public static int getDigit (int n ) {
112- return 0 ;
113- }
114-
115- /** Returns the sum of the odd-place digits, from right to left */
116- public static int sumOfOddPlace (long number ) {
117- return 0 ;
118- }
119-
120- /** Return true if d is a prefix for a number */
121- public static boolean prefixMatched (long number , int d ) {
122- return false ;
123- }
124-
125- /** Returns the number of digits in the given number */
126- public static int getSize (long number ) {
127- return 0 ;
128- }
129-
130- /**
131- * Returns the first k number of digits from number.
132- * If the number of digits in number is less than k,
133- * returns number.
134- */
135- public static long getPrefix (long number , int k ) {
136- return 0 ;
137- }
138- }
97+
98+ /** Returns true if the card number is valid */
99+ public static boolean isValid (long number ) {
100+ return false ;
101+ }
102+
103+ /** Returns the sum of the doubled even-place digits, from right to left */
104+ public static int sumOfDoubleEvenPlace (long number ) {
105+ return 0 ;
106+ }
107+
108+ /**
109+ * Returns the given number if it is a single digit,
110+ * otherwise return the sum of the two digits
111+ */
112+ public static int getDigit (int n ) {
113+ return 0 ;
114+ }
115+
116+ /** Returns the sum of the odd-place digits, from right to left */
117+ public static int sumOfOddPlace (long number ) {
118+ return 0 ;
119+ }
120+
121+ /** Return true if d is a prefix for a number */
122+ public static boolean prefixMatched (long number , int d ) {
123+ return false ;
124+ }
125+
126+ /** Returns the number of digits in the given number */
127+ public static int getSize (long number ) {
128+ return 0 ;
129+ }
130+
131+ /**
132+ * Returns the first k number of digits from number.
133+ * If the number of digits in number is less than k,
134+ * returns number.
135+ */
136+ public static long getPrefix (long number , int k ) {
137+ return 0 ;
138+ }
139+ }
0 commit comments