What is Java?
Setup
Basics of Programming
Conditional, loops statements
Class Object Constructor
OOPs
Share
Sign Up to our social questions and Answers Engine to ask questions, answer peopleβs questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer peopleβs questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Because of you I got an offer as Java developer role thanks a lot brother
sir, Please make an video on HTTP vs HTTPS. how HTTPS works internallya and secure the website. About TLS and SSL.
I'm big fan of ur teachingπ€©π€ππ
Thank you so much sir
Five friends are going to the theater. They have purchased a row of five seats with an aisle on either end.5 String variables are already declared to stored their names.
James doesn't want to sit next to Jill
Betty and Herb are dating and want to sit next to each other
Bob wants to sit on an left side aisle
James wants to sit on the aisle
Provide a seating order that conforms to the above rules. An example of an invalid seating order is:
James, Betty, Herb, Bob, Jill
The above arrangement is invalid because: Bob is not sitting on left aisle.
Specify the seating order as the names separated by commas and a space (as in the above example). Use variables and print names in the right order.
import java.util.*;
public class Main {
public static void main(String[] args) {
//DO NOT TOUCH THESE LINES. TEACHER NEEDS THEM TO TEST YOUR CODE:
String p1 = "James";
String p2 = "Jill, ";
String p3 = "Bob, ";
String p4 = "Betty, ";
String p5 = "Herb, ";
Scanner scan = new Scanner(System.in);
System.out.println("p3, +p1, +p4, +p5, +p2,");
I CAN PRINT BUT DOESN'T PASS TEST CAN U HELP me please