top of page
Caută
  • Poza scriitoruluioanaunciuleanu

Shortcuts in JAVA (IntelliJ IDEA, NetBeans, Android Studio)


1. Basic complete: CTRL + SPACE


This simple command completes the names of classes, methods, fields, and keywords.



2. Generate: ALT+ INSERT


Using ALT + INSERT will help you generate constructors, getters and setters, override methods, etc.


3. Intention: ALT+ ENTER


With ALT + ENTER , the IDE will show you hints to Improve or optimize a code construct.


4. public static void main(String[] args)




5. System.out.println()


Writing just SOUT and TAB will get the entire line: System.out.println()


6. Declaration of method: CTRL + CLICK


With CTRL + CLICK on the name of a method, you will be sent its declaration.



12 afișări0 comentarii

Postări recente

Afișează-le pe toate

Weighted Job Scheduling in JAVA

You receive a list of jobs that have three elements: start time, finish time and profit. You have to schedule the jobs with no overlapping, in order to obtain the maximum profit. Solution: 1. static

Tiling Problem in JAVA

You can use a board that is 2 x n size. The tiles are of size 2 x 1. Count the number of ways to tile the board. Tiles can be placed vertically 2 x 1 or horizontally as 1 x 2. Solution: 1. static

bottom of page