Tools
Practice
Mentorship
WebsiteNew
Resources
RPRohit PariharProjectsJava Tutorial

Java Tutorial

Runtime
java 21.0.12
·
Files
60 files · 24 KB
·
Runs
50 runs
·
Published
Sep 2026
Fork this project

60 files

sessionEight
BreakAndContinue.java
DoWhileLoop.java
DoWhileProgram.java
ForLoop.java
NestedLoop.java
PlusFiveDigits.java
PrintNumbers.java
ReverseNumber.java
RightAngleTriangle.java
WhileLoop.java
sessionEleven
Arrays.java
LoopingOverArrays.java
sessionFive
CharAndInt.java
DiceRoll.java
MathTools.java
PrintF.java
RoundingToTwoDecimal.java
TakingInput.java
TypeCasting.java
sessionFour
LeapYear.java
LogicalOperator.java
ModulusOperator.java
SwapTwoIntVariables.java
sessionNine
CallStack.java
FirstMethod.java
MethodOverloading.java
MethodWithParameter.java
ReturnValues.java
RightAngledTriangle.java
Scopes.java
Triangle.java
TrianglePattern.java
sessionOne
PrintName.java
sessionSeven
ClassicSwitch.java
ComparingText.java
ElseIfLadder.java
IfElse.java
IfStatement.java
NestedIfelseBlocks.java
NewSwitch.java
TernaryOperator.java
sessionSix
DaysBreakdown.java
InputProblem.java
TakingInput.java
TurningTextToNumbers.java
sessionTen
Fibonacci.java
IsPrime.java
IsPrimeOptimized.java
ReverseNumber.java
sessionThree
ArithmeticOperators.java
Constants.java
JavaVar.java
Primitives.java
Strings.java
Variables.java
sessionTwo
EscapeSequences.java
PrintFunction.java
Problem1.java
Problem2.java
TextJoining.java
sessionEight/WhileLoop.java213 B
package sessionEight;​public class WhileLoop {    public static void main(String[] args) {        int i = 1;        while (i <= 5) {            System.out.println("Rohit");            i++;        }    }}​

Stay in the loop

Interview playbooks, new tools, and career tips - a couple of times a month. No spam.

No spam - unsubscribe anytime.

Secure & privacy-first - unsubscribe anytime.

The career platform for professionals and freshers - mentors, mock interviews, and 42 live career tools.

  • +91-7822906506
  • [email protected]
  • Pune, Maharashtra, India
Tools
  • All tools
  • Resume & Profile
  • Money & Tax
  • Developer
  • Revquix AI
  • How the ATS score works
Tools
  • All tools
  • Resume & Profile
  • Money & Tax
  • Developer
  • Revquix AI
  • How the ATS score works
Practice
  • Playground
  • Coding Problems
  • DSA Tracks
  • Leaderboard
  • Revquix Projects
Practice
  • Playground
  • Coding Problems
  • DSA Tracks
  • Leaderboard
  • Revquix Projects
Mentorship
  • Browse sessions
  • Find a Mentor
  • MessagesNew
  • Mock Interview
  • 1:1 Mentorship
  • Packages
  • Resume Review
  • LinkedIn Optimization
  • Offer Letter Review
  • Browse Offers & Deals
  • Become a mentor
Mentorship
  • Browse sessions
  • Find a Mentor
  • MessagesNew
  • Mock Interview
  • 1:1 Mentorship
  • Packages
  • Resume Review
  • LinkedIn Optimization
  • Offer Letter Review
  • Browse Offers & Deals
  • Become a mentor
Website
  • Revquix Sites
  • Templates
  • Showcase
  • Sections
  • Certifications
  • Badges & Verification
  • Verify a credential
  • Success stories
Website
  • Revquix Sites
  • Templates
  • Showcase
  • Sections
  • Certifications
  • Badges & Verification
  • Verify a credential
  • Success stories
Read
  • Revquix Editorial
  • Community
  • Documentation
  • Changelog
Read
  • Revquix Editorial
  • Community
  • Documentation
  • Changelog
Company
  • About Us
  • Our Team
  • Pricing
  • Press kit
  • Services
  • Contact Us
Company
  • About Us
  • Our Team
  • Pricing
  • Press kit
  • Services
  • Contact Us
  • +91-7822906506
  • [email protected]
  • Pune, Maharashtra, India

© 2026 Revquix. All rights reserved.

PrivacyTermsLegal