payilagam 第2页
String,Wrapper Class,Stringbuffer,String split()-拾光赋

String,Wrapper Class,Stringbuffer,String split()

String,Wrapper Class,Stringbuffer,String split(),String: Strings are used for storing text. A String variable contains a collection of characters surrounded by double quotes. Strin...
kity的头像-拾光赋kity37天前
03413
Object Class in Java-拾光赋

Object Class in Java

Object Class in Java,Object Class in Java Object class in Java is present in java.lang package. Every class in Java is directly or indirectly derived from the Object class. If a cl...
kity的头像-拾光赋kity38天前
0487
Matrix Addition,Matrix Multipliction-拾光赋

Matrix Addition,Matrix Multipliction

Matrix Addition,Matrix Multipliction, 1.Matrix Addition: public static void main(String[] args) { int[][] a= {{1,2,3} {1,2,3}, {4,5,6}}; int[][] b= {{6,7,8}, {1,2,3}, {7,8,9}}; int...
kity的头像-拾光赋kity40天前
0279
matrix multipilication,matrix addision-拾光赋

matrix multipilication,matrix addision

matrix multipilication,matrix addision,matrix multipilication: package afterfeb13; public class matrixmulti { public static void main(String[] args) { int[][] a = { { 1, 3, 5 }, { ...
kity的头像-拾光赋kity40天前
02112
Multidimensional array--matrix-拾光赋

Multidimensional array–matrix

Multidimensional array--matrix,Gross matrix:X package afterfeb13; public class multidimarray { public static void main(String[] args) { int[][] mark = { { 10, 20, 80 }, { 40, 50, 6...
kity的头像-拾光赋kity1个月前
04715
Missing number,Reverse Number,subarray with a given sum-拾光赋

Missing number,Reverse Number,subarray with a given sum

Missing number,Reverse Number,subarray with a given sum,Missing number: package afterfeb13; public class missingnum { public static void main(String[] args) { int[] arr = { 10, 20,...
kity的头像-拾光赋kity1个月前
03415
majority element(Moore’s Voting Algorithm)-拾光赋

majority element(Moore’s Voting Algorithm)

majority element(Moore’s Voting Algorithm),Given an array arr. Find the majority element in the array. If no majority exists, return -1. A majority element in an array is an eleme...
kity的头像-拾光赋kity1个月前
0508
count of letter-拾光赋

count of letter

count of letter,1) Frequency of Each letter in a given String(key != '*') 2) Non-repeated char. in a given String(count==1) 3) Repeated Char. in a given String(count>1) 4) First...
kity的头像-拾光赋kity1个月前
04512
Searching in java-拾光赋

Searching in java

Searching in java, Searching: -->Searching Algorithms are designed to check for an element or retrieve an element from any data structure where it is stored. -->In Java,searc...
kity的头像-拾光赋kity1个月前
0275
Count of digits and Palindrome-拾光赋

Count of digits and Palindrome

Count of digits and Palindrome, Count of Digits: -->Given a number n, the task is to return the count of digits in this number. Example: Input: n = 1567 Output: 4 Explanation: T...
kity的头像-拾光赋kity1个月前
03512
python using Eb bill basic-拾光赋

python using Eb bill basic

python using Eb bill basic,units = int(input('Enter the total number of units: ')) if units <= 100: bill = 0 elif units <= 200: bill = (units - 100) * 2 elif units <= 500:...
kity的头像-拾光赋kity1个月前
0317
Linear search and Binary search programs-拾光赋

Linear search and Binary search programs

Linear search and Binary search programs, Linear Search: int[] ar = {10,45,67,100} int key = 67; for(int i=0;i<ar.length;i++) { if(ar[i]==key) System.out.println('key is present...
kity的头像-拾光赋kity1个月前
02415