Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
80d6f57
Add files via upload
Parthkharva69 Jan 20, 2023
400aebe
Delete JavaApplication1.java
Parthkharva69 Jan 20, 2023
b9802dc
data type
Parthkharva69 Jan 20, 2023
73b00c7
Create data type and operaters
Parthkharva69 Jan 21, 2023
72bb529
Create String operations
Parthkharva69 Jan 21, 2023
eb8954c
Update String operations
Parthkharva69 Jan 21, 2023
1c64eae
Create Mainjava.java
Parthkharva69 Jan 21, 2023
5eff3c5
Create abstract_class.java
Parthkharva69 Jan 21, 2023
43967c6
Merge branch 'Hackveda:main' into main
Parthkharva69 Jan 21, 2023
b831be6
code implimentation by Parth Kharva.
Parthkharva69 Jan 23, 2023
243ebe1
1d array code implementation by parth kharva
Parthkharva69 Jan 23, 2023
3626698
Finding of mean using 1d array code is implementation by Parth Kharva
Parthkharva69 Jan 23, 2023
20233b4
2D_Array_code_implemented by Parth Kharva
Parthkharva69 Jan 23, 2023
2e7264b
read_input with 1d array implemented by Parth Kharva
Parthkharva69 Jan 24, 2023
5647852
read_input with 2d array implemented by Parth Kharva
Parthkharva69 Jan 24, 2023
7d39705
for_loop implemented by Parth Kharva
Parthkharva69 Jan 24, 2023
18d2262
while loop implemented by Parth Kharva
Parthkharva69 Jan 24, 2023
99bf92e
do_while loop implemented by Parth Kharva
Parthkharva69 Jan 24, 2023
3d22116
conditions implemented by Parth Kharva
Parthkharva69 Jan 24, 2023
4a53b6b
Nested conditions implemented by Parth Kharva
Parthkharva69 Jan 24, 2023
91042ae
inharitance implemented by Parth Kharva
Parthkharva69 Jan 25, 2023
879a7fd
method over loading implemented by Parth Kharva
Parthkharva69 Jan 25, 2023
6ed618a
method over riding implemented by Parth Kharva
Parthkharva69 Jan 27, 2023
573b1fe
interface implemented by Parth Kharva
Parthkharva69 Jan 27, 2023
f28da0c
class 1 implemented by Parth Kharva
Parthkharva69 Jan 27, 2023
03693a5
class2 implemented by Parth Kharva
Parthkharva69 Jan 27, 2023
879f9cb
constructer class implemented by Parth Kharva
Parthkharva69 Jan 27, 2023
cd6c405
encapsulation with access specifer implemented by Parth Kharva
Parthkharva69 Jan 31, 2023
83b5830
class1 implemented by Parth Kharva
Parthkharva69 Jan 31, 2023
dd5f760
main class implemented by Parth Kharva
Parthkharva69 Jan 31, 2023
1494e6a
jshell implemented by Parth Kharva
Parthkharva69 Feb 2, 2023
7d6842f
class1 implemented by Parth Kharva
Parthkharva69 Feb 2, 2023
27ff923
Main_class1 implemented by Parth Kharva
Parthkharva69 Feb 2, 2023
5c1bec7
exception handling implemented by Parth Kharva.
Parthkharva69 Feb 3, 2023
1eeaeb9
Advanced Exception Handling implemented by Parth Kharva
Parthkharva69 Feb 4, 2023
a3ebb21
Throw Exception implemented by Parth Kharva
Parthkharva69 Feb 4, 2023
a3b9a91
Chained Exception Implemented by Parth Kharva
Parthkharva69 Feb 4, 2023
9c74d00
list interface implemented by Parth Kharva
Parthkharva69 Feb 6, 2023
8f864ae
ArrayList Implemented by Parth Kharva
Parthkharva69 Feb 6, 2023
673aa79
Stack impleneted by Parth Kharva
Parthkharva69 Feb 7, 2023
58701c9
Array Deque Impleneted by Parth Kharva
Parthkharva69 Feb 7, 2023
3ab4a3e
comparator class implemented by Parth Kharva
Parthkharva69 Feb 8, 2023
1b778be
Priority Queue impleneted by Parth Kharva
Parthkharva69 Feb 8, 2023
f3ef686
Array_List_Parallel_Processing_Using_Spliterator implemented by Parth…
Parthkharva69 Feb 9, 2023
0cda2f4
ToArray implemented by Parth Kharva
Parthkharva69 Feb 10, 2023
376185d
Node Implemented by Parth Kharva
Parthkharva69 Feb 11, 2023
426ab5a
Binary_tree_Creation_Insertion_Traversal implemented By Parth Kharva
Parthkharva69 Feb 13, 2023
1c6aef8
Binary_tree_Pre-order_&_Post-oder_Traversal implemented by Parth Kharva
Parthkharva69 Feb 13, 2023
fd9ccc0
BFS_Traversal implemented by Parth Kharva
Parthkharva69 Feb 14, 2023
72ba409
class1 implemented by Parth Kharva
Parthkharva69 Feb 15, 2023
a3594c8
BMI_class implemented by Parth Kharva
Parthkharva69 Feb 15, 2023
4ffad2a
Encryption_Portion_Of _Caesar_Cipher Implemented by Parth Kharva
Parthkharva69 Feb 17, 2023
26bc026
Encryption_&_Decryption_Portion_Of _Caesar_Cipher.java Implemented by…
Parthkharva69 Feb 20, 2023
408e775
Create SpringbootApplication.java
Parthkharva69 Mar 11, 2023
b932f8f
Create simpe_app_controller.java
Parthkharva69 Mar 11, 2023
b769ae9
spring boot application code implemented by Parth Kharva
Parthkharva69 Mar 16, 2023
c1e2d6f
simple controller implemented by parth kharva
Parthkharva69 Mar 16, 2023
3e1bc70
webservice code implemented by Parth Kharva
Parthkharva69 Mar 16, 2023
3c1129a
web result unloaded by Parth Kharva
Parthkharva69 Mar 16, 2023
e45c359
post man result Uploaded by Parth Kharva
Parthkharva69 Mar 16, 2023
eeb7a4a
SpringSecurityTestApplication.java implemented by Parth Kharva
Parthkharva69 Apr 17, 2023
df5a0a0
Simple_Controller.java implemented by Parth Kharva
Parthkharva69 Apr 17, 2023
a18ec5a
Security_config.java implemented by Parth Kharva
Parthkharva69 Apr 17, 2023
234be83
output of my project (Parth Kharva)
Parthkharva69 Apr 17, 2023
bd798d0
mainfile.java is implemented by Parth kharva
Parthkharva69 Apr 21, 2023
06b386d
output1 is created by Parth Kharva
Parthkharva69 Apr 21, 2023
3fe21e6
output2 is created by parth kharva
Parthkharva69 Apr 21, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions JavaApplication1.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
*/
package javaapplication1;

import static jdk.nashorn.api.scripting.ScriptUtils.convert;

/**
*
* @author Parthkharva
*/
public class JavaApplication1 {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
int a = 10;
int b = 52;
float x= 123.4556655f;
System.out.println(x);

double dd = 456/45;
System.out.println(dd);

String c = "parth";
String name = null;
System.out.println("name:"+c+" : "+name);

int d =++b;
System.out.println(d);

int e =b++;
System.out.println(e);

int f = a--;
System.out.println(f);

int g = --a;
System.out.println(g);

int h = a+b;
System.out.println(h);

int i = a-b;
System.out.println(f);

int j = a*b;
System.out.println(j);

int k = a/b;
System.out.println(k);

boolean bl = true;
System.out.println(bl);
System.out.println(!bl);
}
}
78 changes: 78 additions & 0 deletions Parth_Kharva/1D_Array_implementation.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
*/
package pkg1d_array;

/**
*
* @author Parthkharva
*/
public class Main {

/**
* @param args the command line arguments
*/

public static void main(String[] args) {
//types of array declaration
int a[];
int[] b = new int[10];
//assign a value in a two ways
int[] numbers = {178, 299, 375, 412, 5, 16, 78, 80, 91};//at compile time
//or
int[] no = new int[3];
no[0]=10;
no[1]=20;
no[2]=30;

// print array Values:
System.out.println("Array values of no : ");
for(int x=0; x<no.length;x++){
System.out.println(no[x]);
}


int check_no1 = 91;
int check_no2 = 9;
boolean match = false;
int i;
System.out.print("Your selected array Values : ");
for(i=0; i<numbers.length;i++){
System.out.print(numbers[i]+",");
}

//find numbers according to our requirement
for (i = 0; i < numbers.length; i++) {
if (numbers[i] == check_no1) {
match = true;
break;
}
}
if (match == true){
System.out.println("\nyour requested Number : "+ check_no1+" is matched at index Position : "+i+"." );
match = false;
}
else{
System.out.println("your requested Number : "+ check_no1+" is not matched in the array." );
}


for (i = 0; i < numbers.length; i++) {
if (numbers[i] == check_no2) {
match = true;
break;
}
}
if (match == true){
System.out.println("your requested Number : "+ check_no2+" is matched at index Position : "+i+"." );
match = false;
}
else{
System.out.println("your requested Number : "+ check_no2+" is not matched in the array." );
}

// Find length of the array
System.out.println("Full length of array is : "+numbers.length);
}
}
66 changes: 66 additions & 0 deletions Parth_Kharva/2D_Array_Implementation.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
*/
package pkg2d_array;

/**
*
* @author Parthkharva
*/
public class Main {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
int[][] a = new int[3][3];//int[ROW][COLUMN](Basically this is a 3x3 matrics.)
int i;

System.out.println("Before inserted value :");
for(i=0; i<a.length;i++){
for(int j=0; j<a.length;j++){
System.out.print(a[i][j]);
}
System.out.print("\n");
}
System.out.print("\n");
System.out.println("After inserted value :");

// set value at index [3][2] Means 3rd row and 2 column
a[2][2] = 45;

for(i=0; i<a.length;i++){
for(int j=0; j<a.length;j++){
System.out.print(a[i][j]);
}
System.out.print("\n");
}
System.out.print("\n");

//define String array creation
String[][] data = {{"First Name","Last Name"},{"Parth","Kharva"},{"Ashish","Patel"}};
System.out.println("Before change value :");
// display value
for(i=0; i<3;i++){
for(int j=0; j<2;j++){
System.out.print(data[i][j]+" ");
}
System.out.print("\n");
}
System.out.print("\n");

//change value
data[2][1] = "Kharva";

System.out.println("after change a value :");
// display value
for(i=0; i<3;i++){
for(int j=0; j<2;j++){
System.out.print(data[i][j]+" ");
}
System.out.print("\n");
}

}
}
16 changes: 16 additions & 0 deletions Parth_Kharva/Access Specifier/Class1.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/
package access_specifer;

/**
*
* @author Parthkharva
*/
public class asscess_specifer_creation {
public int a = 45;
private int b =96;
protected int c = 78;
int d = 80;
}
25 changes: 25 additions & 0 deletions Parth_Kharva/Access Specifier/Main class.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
*/
package access_specifer;

/**
*
* @author Parthkharva
*/
public class Access_specifer extends asscess_specifer_creation{

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Access_specifer obj1 = new Access_specifer();
System.out.println(obj1.a);
System.out.println(obj1.c);
System.out.println(obj1.d);
System.out.println(obj1.b);

}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
*/
package caesarciphe;

import java.util.Scanner;

/**
*
* @author Parthkharva
*/
public class Caesarciphe {

/**
* @param args the command line arguments
*/
public static String Encrypt(String text, int positions) {
String toEncrypt = "", result = "";
//Message encrypted
for (int i = 0; i < text.length(); i++) {
//remove spacings

if (text.charAt(i) == ' ') {
continue;
} else {
//convert lowercase to uppercase
if (Character.isLowerCase(text.charAt(i))) {
toEncrypt += Character.toUpperCase(text.charAt(i));
} //if already uppercase keep the uppercase character
else {
toEncrypt += text.charAt(i);
}
}
}
for (int i = 0; i < toEncrypt.length(); i++) {
//shift the current letter of the message with given positions from right.
char shiftedLetter = (char) (toEncrypt.charAt(i) + positions);

//if the ASCII code exceeds Z, then bring it back in the interval A..Z
if (shiftedLetter > 'Z') {
shiftedLetter = (char) (shiftedLetter + 'A' - 'Z' - 1);
}
result += shiftedLetter;
}
return result;
}

public static String Decrypt(String text, int positions) {
//encrypted code is already uppercase,
String result = "";
for (int i = 0; i < text.length(); i++) {

//shift the current letter of the message with given positions to left
char shiftedLetter = (char) (text.charAt(i) - positions);

//if the ASCII code exceeds A, then bring it back in the interval A..Z
if (shiftedLetter < 'A') {
shiftedLetter = (char) (shiftedLetter - 'A' + 'Z' + 1);
}
result += shiftedLetter;

}

return result;
}

public static void main(String[] args) {
//message input code
System.out.println("CAESAR CIPHER");
Scanner sc = new Scanner(System.in);
System.out.println("Type Your Important Message : ");
String message = sc.nextLine();
System.out.print("Type the key: ");
int key = sc.nextInt();
sc.close();
System.out.println("\n");

// message Encryption code
System.out.println("Process : Encrypting...");
String encryptedMessage = Encrypt(message, key);
System.out.println("The encrypted message is: " + encryptedMessage);
System.out.println("\n");
System.out.println("Process : Encryption Complete...");

// message Dencryption code
System.out.println("Process : Decrypting...");
String restoredMessage = Decrypt(encryptedMessage, key);
System.out.println("The Decrypted message is: " + restoredMessage);
System.out.println("Process : Decryption Complete...");
}
}
Loading