ch
Feedback

不要被骗子欺骗!Telemetrio 会找到并标记这些频道 👉 如果想查看标记,请订阅

Java programming for beginners

Java programming for beginners

前往频道在 Telegram

Learn java programming through quizzes and videos

显示更多
未指定国家未指定类别
2 941
订阅者
无数据24 小时
无数据7 天
无数据30 天
帖子存档
import java.util.Scanner; public class NameEvaluation { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print("Enter a number from 1 to 9: "); int number = scanner.nextInt(); if (number >= 1 && number <= 9) { if (number % 2 == 0) { System.out.print("Enter your name: "); scanner.nextLine(); // Consume the newline character left by nextInt() String name = scanner.nextLine(); System.out.println(name + " is good"); } else { System.out.print("Enter your surname: "); scanner.nextLine(); // Consume the newline character left by nextInt() String surname = scanner.nextLine(); System.out.println("Name is worst"); } } else { System.out.println("Invalid input. Please enter a number between 1 and 9."); } scanner.close(); } }
17 8月 2023, 01:14

This I don't k wo
06 3月 2022, 01:10

Altimetrik
13 2月 2022, 08:24

Hello everyone
11 5月 2022, 04:48

Ni to eclipse me class bana ke copy paste krne eclipse khud execute kr dega
02 6月 2023, 11:08

06 3月 2022, 00:46

Did anyone got Wipro exam link?
24 5月 2022, 21:27

Error
07 11月 2023, 02:10

Guys do vote, it will really help to see how many of you are able to write and if facing any issues discuss in group
02 1月 2022, 09:05

12 3月 2022, 23:28

arun Reddy welcome to the group. To learn how to crack coding exams
11 3月 2022, 05:06

b
05 3月 2022, 23:54

Ssekagya Ronald welcome to the group. To learn how to crack coding exams
22 8月 2023, 02:09

10 2月 2022, 00:10

D
09 3月 2022, 06:09

10000
06 2月 2022, 02:42

Snowing
08 2月 2022, 06:10

Yes
05 3月 2022, 23:57

B
04 3月 2022, 03:22

我们使用 cookie 来改善您的浏览体验。
点击“全部接受”,即表示您同意Cookie 使用政策。