Skip to content

Commit

Permalink
reset office-hours
Browse files Browse the repository at this point in the history
  • Loading branch information
jefeish committed Jul 1, 2024
1 parent 4906776 commit 113f56b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
12 changes: 1 addition & 11 deletions demos/sample_code/ValidatorUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,9 @@ public static boolean isValidSSN(String input) {

/**
* @description: This method checks if the input is a valid phone number.
* This method checks if the input is a valid phone number of the format:
* String input4 = "718 419 4126";
String input5 = "718-419-4126";
String input6 = "(718)419 4126";
String input7 = "(718)4194126";
String input8 = "7184194126";
Numbers starting with 555 are not valid phone numbers, including (555)
String input9 = "555-419-4126";
String input10 = "(555)-419-4126";
String input11 = "5554194126";
*/
public static boolean isValidPhoneNumber(String input) {

return input.matches("^\\d{3}-\\d{3}-\\d{4}$");
}

}
18 changes: 1 addition & 17 deletions demos/sample_code/webServer.js
Original file line number Diff line number Diff line change
@@ -1,17 +1 @@
// importiere alle benötigten Module für einen Webserver mit express
// und erstelle eine neue Instanz von express
// use multiple steps to create a web server with express
var express = require('express');
var app = express();
var path = require('path');
var fs = require('fs');
var bodyParser = require('body-parser');

// erstelle eine neue Instanz von express
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.use(express.static(path.join(__dirname, 'public')));

// erstelle einen neuen Webserver und höre auf Port 8080
app.listen(8080, function(){
console.log('Server running at http://
// importiere alle benötigten Module

0 comments on commit 113f56b

Please sign in to comment.