mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2025-05-18 12:02:53 +02:00
build(deps): update latest
This commit is contained in:
@ -1,12 +1,13 @@
|
||||
import java.util.Scanner;
|
||||
|
||||
public class Solution {
|
||||
public static void main(String[] args) {
|
||||
String line;
|
||||
Scanner scanner = new Scanner(System.in);
|
||||
while(scanner.hasNextLine()) {
|
||||
line = scanner.nextLine();
|
||||
System.out.println("Hello, " + line + "!");
|
||||
public static void main(String[] args) {
|
||||
String line;
|
||||
Scanner scanner = new Scanner(System.in);
|
||||
while (scanner.hasNextLine()) {
|
||||
line = scanner.nextLine();
|
||||
System.out.println("Hello, " + line + "!");
|
||||
}
|
||||
scanner.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
7
challenges/hello-world/solutions/rust/function/Cargo.lock
generated
Normal file
7
challenges/hello-world/solutions/rust/function/Cargo.lock
generated
Normal file
@ -0,0 +1,7 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "rust_application"
|
||||
version = "1.0.0"
|
@ -0,0 +1,6 @@
|
||||
[package]
|
||||
name = "rust_application"
|
||||
version = "1.0.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
@ -1,8 +0,0 @@
|
||||
use std::io::{self, BufRead};
|
||||
|
||||
fn main() {
|
||||
let stdin = io::stdin();
|
||||
for line in stdin.lock().lines() {
|
||||
println!("Hello, {}!", line.unwrap());
|
||||
}
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
use std::io::{self, BufRead};
|
||||
|
||||
fn main() {
|
||||
let stdin = io::stdin();
|
||||
for line in stdin.lock().lines() {
|
||||
println!("Hello, {}!", line.unwrap());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user