en
Feedback

Don't get caught by a cheater! Telemetrio finds and tags such channels 👉 If you want to see the tag, subscribe

Java programming for beginners

Java programming for beginners

Open in Telegram

Learn java programming through quizzes and videos

Show more
The country is not specifiedThe category is not specified
2 941
Subscribers
No data24 hours
No data7 days
No data30 days
Posts Archive
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 Aug 2023, 01:14

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

Altimetrik
13 Feb 2022, 08:24

Hello everyone
11 May 2022, 04:48

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

06 Mar 2022, 00:46

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

Error
07 Nov 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 Jan 2022, 09:05

12 Mar 2022, 23:28

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

b
05 Mar 2022, 23:54

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

10 Feb 2022, 00:10

D
09 Mar 2022, 06:09

10000
06 Feb 2022, 02:42

Snowing
08 Feb 2022, 06:10

Yes
05 Mar 2022, 23:57

B
04 Mar 2022, 03:22

We use cookies to improve your browsing experience.
By clicking “Accept all”, you agree to the cookie policy.