file moved
This commit is contained in:
		
							parent
							
								
									9cb3e8632f
								
							
						
					
					
						commit
						8c97354f51
					
				
					 1 changed files with 0 additions and 38 deletions
				
			
		|  | @ -1,38 +0,0 @@ | ||||||
| import java.util.ArrayList; |  | ||||||
| import java.util.Scanner; //scanner |  | ||||||
| 
 |  | ||||||
| class HelloWorld { |  | ||||||
|     static void calculate(ArrayList<E> ENTRIES_LIST, String OPERATION) { |  | ||||||
| 		// Calculate length.  |  | ||||||
| 		int ENTRIES_LIST_LENGTH = LIST_ENTRIES.length; |  | ||||||
| 
 |  | ||||||
| 		if (ENTRIES_LIST_LENGTH > 0) { |  | ||||||
| 			// Create a placeholder for return result.  |  | ||||||
| 			float OPERATION_RESULT = ENTRIES_LIST.get(0); |  | ||||||
| 			 |  | ||||||
| 			if (ENTRIES_LIST_LENGTH > 1) { |  | ||||||
| 				for (int ENTRY_CURRENT = 1; ENTRY_CURRENT < ENTRIES_LIST_LENGTH; ENTRY_CURRENT++) { |  | ||||||
| 					if (OPERATION == "+") { |  | ||||||
| 						OPERATION_RESULT += ENTRIES_LIST.get(ENTRY_CURRENT); |  | ||||||
| 					} else if (OPERATION == "-") { |  | ||||||
| 						OPERATION_RESULT -= ENTRIES_LIST.get(ENTRY_CURRENT); |  | ||||||
| 					}; |  | ||||||
| 				}; |  | ||||||
| 			}; |  | ||||||
| 		}; |  | ||||||
| 	}; |  | ||||||
| 	 |  | ||||||
| 	 |  | ||||||
| 	public static void main(String[] args) { |  | ||||||
|         Scanner input = new Scanner(System.in); |  | ||||||
| 
 |  | ||||||
| 		// Initialize the input numbers.  |  | ||||||
| 		ArrayList NUMBERS_INPUT = new ArrayList(); |  | ||||||
| 		// Ask the number.  |  | ||||||
| 		 |  | ||||||
| 
 |  | ||||||
| 		System.out.println(); |  | ||||||
| 		 |  | ||||||
| 		System.out.println("Hello, World!"); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue