Questions tagged [java-6]

Java SE version 6 was released in December 2006. Use this tag for questions specific to this version of Java.

Java SE 6 was an evolutionary change over the previous version. It did not include extensive language or JVM changes, however such changes were planned for Java SE 7 which was supposed to be released much sooner. (See here for what changed in Java 6).

As a stop-gap to the much delayed Java 7, Sun (since purchased by Oracle) introduced Java SE 6 Update 10, which despite its modest version numbering, represented extensive improvements to the GUI capabilities of Java in order to support JavaFX and Sun's renewed attempt to make Java successful in the GUI arena.

Internally, Java is numbered with a "1." before the number, so it will report itself as "1.6.0_" with an update number at the end. Starting with version 6, Sun dropped the ".0" from its marketed version number, so instead of 5.0 as previously done, it was Java 6.

Only use this tag if your question is specifically related to features of this version. Just because you are using this version, doesn't mean you need this tag. Use in addition to or instead of this tag.

See for more information.

1391 questions
-3
votes
3 answers

How to check duplicate values in a list of objects

I have a Spring MVC application where I need to save a list of persons. However I need to check if the name,surname and age are the same among the list of person. If there are the same then I should stop the user from saving the data The Person…
user1999453
  • 1,297
  • 4
  • 29
  • 65
-3
votes
1 answer

Creating directories in remote PC using Java

I need to create a directory in another PC using Java, so I used FILE class, my code structure is String path = "\\\\192.148.64.99"+File.separator+"D:"+File.separator+"hello"; String fname= path+File.separator+"Sample.pdf"; …
Sajini
  • 45
  • 1
  • 1
  • 8
-3
votes
2 answers

java 6 IO - wrapped streams closing

Consider : public static void read(String filename) throws IOException { String charsetName = "UTF-8"; InputStream file = new FileInputStream(filename); // say no problem InputStreamReader reader = new InputStreamReader(file,…
Mr_and_Mrs_D
  • 32,208
  • 39
  • 178
  • 361
-4
votes
1 answer

How to get current date time in the format 2019101620000583?

I am new to Java. I am trying to store current date time in long format, like 2019110820000583. I tried using System.currentTimeMillis() but it doesn't give date and time combined. It gives me result like 1573205716048.
Adorable
  • 5
  • 4
-4
votes
2 answers

Migrating from Java 6 to Kotlin

I have some projects in Java 6 and Spring on app server. Because of limitations in my infrastructure and governance planninng I cannot migrate to newer Java 7 or 8. I think i could add Kotlin in those projects to use features like functional…
-4
votes
1 answer

Applet is not running in java6 and it is working using java7

I am using applet code in my application. When I am running that applet it is aksing me to install java 7 version. Is it mandatory to install java7 version? If it is mandatory how the applets were run in java6 version previously? I am confused.
PSR
  • 39,804
  • 41
  • 111
  • 151
-5
votes
2 answers

java SE 6 implementation of int[] sort

My friends told me that there are some error in the implementation of JavaSE6 sorting algorithm for int[], which is quicksort, I want to check the implementation, how can I do that? Where can I find the code?
safarisoul
  • 257
  • 1
  • 5
  • 13
-5
votes
2 answers

count words of sentences?

i want to count number of words per sentences i write code but count character for each word in sentences this my code public static void main(String [] args){ Scanner sca = new Scanner(System.in); System.out.println("Please type some…