473,287 Members | 1,946 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

Logic Development in terms of Java

24
Hi Guys....
I have been learning java for some time now(3 months)...I have very good mathematics, solving puzzles & all kind of things...
I have been excellent in academics and have very good analytical skills...I have nearly photographic memory(My IQ is 187)...
But developing logic for something that java will understand is like beyond my scope...
In colleges my friends would tell me that i make them look like chimps...
But now learning java I feel like i am a chimp...even my friends who struggle doing basic maths and reasoning develop better programs than me...

My concepts in java are strong because i know what every keyword or method does in java.. but give me a program to write i struggle with what variables to use where.. should i use for-loop or others...

eg Student exam (off-line) project
Now i have to put questions(with options) from a notepad file to database & display it on screen using swing...
I did every functions but I could not develop a logic to make questions from notepad to database to screen...

I do not expect a solution from you people...but a push in the right direction towards my goal to become a good programmer....Help me out guys...I have never felt so helpless before....
Feb 10 '13 #1
3 2368
Rabbit
12,516 Expert Mod 8TB
The first step would be to write out in words how you would accomplish this task.

For example, in this case, one approach would be:

1) Read one line from the notepad file.
2) Insert that line into the database.
3) Display the line to the screen.
4) Go back to line 1 and repeat until the entire file has been read.

That is the basic logic.
Feb 10 '13 #2
Shepard
24
Thanks a lot Mr.Rabbit...I already got that part... I also attempted using split method by putting symbols at the end of each sentence...But as i said i do not struggle here i struggle in the next step....
How to put my thinking in codes??

This thing happens every time...I have a fair idea on how to do the task(java) but not how to put it in codes??
This is freaking me out.
Feb 11 '13 #3
Rabbit
12,516 Expert Mod 8TB
If you're still having problem, you need to write more and more detailed steps until you can translate it to code by mapping functions to the steps.

For example, step 1 from above can be written in more detail as:
1a) Open the file
2a) Read a line from the file

At this point, I can look for functions that does each of these steps. 1a can be accomplished with the Scanner class and 1b can be accomplished with the nextLine method of the Scanner class.

And then you tackle the next step. Write more and more specific instructions until you can map them to functions.
Feb 11 '13 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Joan MacEachern | last post by:
Join James Gosling, the designer of the Java programming language, and Sun VP and Fellow, and Robin Smith, Product Line Manager for Java(tm) Studio Standard Edition for a compelling 60-minute...
0
by: asj | last post by:
luke: BORRRRRRRRING......the most interesting initiatives are happening on the client side - in small wireless devices such as cellphones and smartphones, where J2ME has become the de facto...
8
by: Beatrice Rutger | last post by:
Hi, I am a previous Micro$oft desertee (moved from VB/VC++ to Java before this whole DOTNET thing) because I had several issues with Micro$oft. I am not completely in love with Windoze, but I...
1
by: Raquel | last post by:
Have a question on the Stored procedure method code generated by DB2 development center for Java stored procedures. Suppose I have a requirement to return the resultset consisting of FIRSTNME,...
2
by: Rafael Faria | last post by:
Hi All, We are starting a large data warehousing project using DB2 8.2 on AIX. There is a direction to move any new internal development to Java and a question was raised: Would it be a good...
28
by: grappletech | last post by:
I took Pascal and BASIC in a couple of beginner programming courses about a decade ago and did well with them. I am good with pseudocode, algorithms, and the mathematics of programming. I decided...
15
by: himilecyclist | last post by:
My State government organization has written a PHP/MySQL application which has been in production for about 6 months and has been highly successful. We are now embarking on a similar database...
0
by: systemania.com | last post by:
We have 3 contract positions open in Herndon Virginia for 3 JAVA/J2EE Developers. The contracts are Long Term (1 year ++). The rate is $45/h negotiable based on experience. To apply for this...
0
by: Giri | last post by:
We also have PE, SSE, SSE QA, SE QA, SSE-SCM positions *Please send the resume to girish_mc@intuit.com* 1) PE - Minimum 9 years experience - Must have extensive...
0
Todd Faisal
by: Todd Faisal | last post by:
A quick overview of the popular mobile application development platforms: Android application development Android is developer’s dream – it is free, open sourced, and it is developed and endorsed...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.