Frontend Development 2023.pdf
2 MB
FRONTEND DEVELOPER ROADMAP FOR 2023 β€οΈYOU CAN GET YOUR FRIENDS ADDED HERE π FROM NEXT SUNDAY WILL AGAIN START OUR SESSION
WHICH SUBJECT YOU WANT TO LEARN WITH US WITH A IMPLEMENTED PROJECT
Anonymous Poll
43%
CORE JAVA
6%
ADVANCE JAVA
27%
SPRING AND SPRING BOOT
4%
HTML
6%
JAVASCRIPT
0%
CSS
14%
REACT-JS
π3
Forwarded from Aman Raj
Linkedin
Abhishek Vijayvargia on LinkedIn: #machinelearning #datascience #ml #python #ai | 74 comments
FREE Google Course for 2023!
Google Analytics for Power Users
πhttps://lnkd.in/da42MiC5
Fundamentals of digital marketing
πhttps://lnkd.in/dE7FFs6m
Python⦠| 74 comments on LinkedIn
Google Analytics for Power Users
πhttps://lnkd.in/da42MiC5
Fundamentals of digital marketing
πhttps://lnkd.in/dE7FFs6m
Python⦠| 74 comments on LinkedIn
Java Hyd Team pinned Β«WHICH SUBJECT YOU WANT TO LEARN WITH US WITH A IMPLEMENTED PROJECTΒ»
Given a pattern and a string s, find if s follows the same pattern.
Here follow means a full match, such that there is a bijection between a letter in pattern and a non-empty word in s.
Example 1:
Input: pattern = "abba", s = "dog cat cat dog"
Output: true
Example 2:
Input: pattern = "abba", s = "dog cat cat fish"
Output: false
Example 3:
Input: pattern = "aaaa", s = "dog cat cat dog"
Output: false
Here follow means a full match, such that there is a bijection between a letter in pattern and a non-empty word in s.
Example 1:
Input: pattern = "abba", s = "dog cat cat dog"
Output: true
Example 2:
Input: pattern = "abba", s = "dog cat cat fish"
Output: false
Example 3:
Input: pattern = "aaaa", s = "dog cat cat dog"
Output: false
We have some openings for these technologies if you want just let us know (PHP, laravel , React-Js , react next , react native , spring boot, flutter)
Forwarded from Aman Raj
Q1. Write a program to traverse (or iterate) ArrayList? (Solution)
As I already mentioned,you can traverse ArrayList using for loop, while loop, advance for loop and iterator. This question tests knowledge of add() method of ArrayList and looping concept. Below example traverses ArrayList using advance for loop:
import java.util.*;
public class ArrayListLoopExample {
public static void main(String args[]) {
// initialize ArrayList
ArrayList<Integer> al = new ArrayList<Integer>();
// add elements to ArrayList object
al.add(3);
al.add(17);
al.add(6);
al.add(9);
al.add(7);
System.out.println("Using Advanced For Loop");
// printing ArrayList
for (Integer num : al) {
System.out.println(num);
}
}
}
Q2 Write a program to convert List to Array. (Solution)
List for e.g ArrayList or LinkedList can be converted to Array using toArray() method.
Q3 Write a program to traverse(or iterate) HashSet? (Solution)
You can traverse the HashSet using iterator or without using iterator as well.
Q4 Given an element write a program to check if element(value) exists in ArrayList?
You can check if element(value) exists in ArrayList using ArrayList contains() method. Example is given below :
import java.util.*;
public class ArrayListContainsExample {
public static void main(String args[]) {
// initialize ArrayList
ArrayList<Integer> al = new ArrayList<Integer>();
// add elements to ArrayList object
al.add(3);
al.add(17);
al.add(6);
al.add(9);
al.add(7);
// check if ArrayList contains element
if (al.contains(7)) {
System.out.println("7 was found in the list");
} else {
System.out.println("7 was not found in the list");
}
}
}
Q5 Given an element write a program to check if element exists in HashSet?
You can check if element(value) exists in HashSet using the contains() method. Example is given below :
import java.util.*;
public class HashSetContainsExample {
public static void main(String args[]) {
// initialize HashSet
HashSet<Integer> hs = new HashSet<Integer>();
// add elements to HashSet object
hs.add(3);
hs.add(17);
hs.add(6);
hs.add(9);
hs.add(7);
// check if HashSet contains element
if (hs.contains(7)) {
System.out.println("7 was found in the list");
} else {
System.out.println("7 was not found in the list");
}
}
}
Q6 Write a program to initialize a HashMap in java ?
You can initialize a HashMap in java using below code :
// initialize HashMap
HashMap<String,String> hashmap = new HashMap<String,String>();
Q7 Write a program to initialize an ArrayList in java?
// initialize ArrayList
ArrayList<Integer> al = new ArrayList<Integer>();
Q8 Write a program to convert Array to List? (Solution)
Array can be converted to list using Arrays.asList() method.
Q9 Write a program to find the length of the ArrayList? (Solution)
Length of the ArrayList can be found using size() method.
Q10 Write a program to add elements to the HashMap given the key and value data type is String?
// Declaring a HashMap of String keys and String values
HashMap<String, String> hashmap = new HashMap<String, String>();
// Adding key-value pairs to HashMap
hashmap.put("1", "Value1");
hashmap.put("2", "Value2");
hashmap.put("3", "Value3");
hashmap.put("4", "Value4");
hashmap.put("5", "Value5");
Q11 Write a program to initialize a HashSet in java?
// initialize HashSet
HashSet<Integer> al = new HashSet<Integer>();
Q12 Write a program to add elements to ArrayList ?
ArrayList<Integer> al = new ArrayList<Integer>();
// add elements to ArrayList
As I already mentioned,you can traverse ArrayList using for loop, while loop, advance for loop and iterator. This question tests knowledge of add() method of ArrayList and looping concept. Below example traverses ArrayList using advance for loop:
import java.util.*;
public class ArrayListLoopExample {
public static void main(String args[]) {
// initialize ArrayList
ArrayList<Integer> al = new ArrayList<Integer>();
// add elements to ArrayList object
al.add(3);
al.add(17);
al.add(6);
al.add(9);
al.add(7);
System.out.println("Using Advanced For Loop");
// printing ArrayList
for (Integer num : al) {
System.out.println(num);
}
}
}
Q2 Write a program to convert List to Array. (Solution)
List for e.g ArrayList or LinkedList can be converted to Array using toArray() method.
Q3 Write a program to traverse(or iterate) HashSet? (Solution)
You can traverse the HashSet using iterator or without using iterator as well.
Q4 Given an element write a program to check if element(value) exists in ArrayList?
You can check if element(value) exists in ArrayList using ArrayList contains() method. Example is given below :
import java.util.*;
public class ArrayListContainsExample {
public static void main(String args[]) {
// initialize ArrayList
ArrayList<Integer> al = new ArrayList<Integer>();
// add elements to ArrayList object
al.add(3);
al.add(17);
al.add(6);
al.add(9);
al.add(7);
// check if ArrayList contains element
if (al.contains(7)) {
System.out.println("7 was found in the list");
} else {
System.out.println("7 was not found in the list");
}
}
}
Q5 Given an element write a program to check if element exists in HashSet?
You can check if element(value) exists in HashSet using the contains() method. Example is given below :
import java.util.*;
public class HashSetContainsExample {
public static void main(String args[]) {
// initialize HashSet
HashSet<Integer> hs = new HashSet<Integer>();
// add elements to HashSet object
hs.add(3);
hs.add(17);
hs.add(6);
hs.add(9);
hs.add(7);
// check if HashSet contains element
if (hs.contains(7)) {
System.out.println("7 was found in the list");
} else {
System.out.println("7 was not found in the list");
}
}
}
Q6 Write a program to initialize a HashMap in java ?
You can initialize a HashMap in java using below code :
// initialize HashMap
HashMap<String,String> hashmap = new HashMap<String,String>();
Q7 Write a program to initialize an ArrayList in java?
// initialize ArrayList
ArrayList<Integer> al = new ArrayList<Integer>();
Q8 Write a program to convert Array to List? (Solution)
Array can be converted to list using Arrays.asList() method.
Q9 Write a program to find the length of the ArrayList? (Solution)
Length of the ArrayList can be found using size() method.
Q10 Write a program to add elements to the HashMap given the key and value data type is String?
// Declaring a HashMap of String keys and String values
HashMap<String, String> hashmap = new HashMap<String, String>();
// Adding key-value pairs to HashMap
hashmap.put("1", "Value1");
hashmap.put("2", "Value2");
hashmap.put("3", "Value3");
hashmap.put("4", "Value4");
hashmap.put("5", "Value5");
Q11 Write a program to initialize a HashSet in java?
// initialize HashSet
HashSet<Integer> al = new HashSet<Integer>();
Q12 Write a program to add elements to ArrayList ?
ArrayList<Integer> al = new ArrayList<Integer>();
// add elements to ArrayList